Skip to content

Commit

Permalink
Variable arguments and work with make even if make isn't GNU make whe…
Browse files Browse the repository at this point in the history
…n GNU make is installed.
  • Loading branch information
douglas committed Apr 17, 2010
1 parent 3041b12 commit 0a77472
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 168 deletions.
8 changes: 4 additions & 4 deletions GNUmakefile.in
@@ -1,6 +1,6 @@
# @configure_input@

SHELL := @_BASH@
SHELL := $(shell which @BASH@)
VPATH := @srcdir@

ifndef PKG_TARG
Expand All @@ -15,7 +15,7 @@ flex := @FLEX@
libtool := @LIBTOOL@
cxx := @CXX@
objcxx := @OBJCXX@
cflags := @CPPFLAGS@ @CXXFLAGS@ -DYYDEBUG=1 @DEFS@
cflags := @CPPFLAGS@ @CXXFLAGS@ -DYYDEBUG=1 $(filter -DHAVE_FFI%,@DEFS@)
objcxxflags := @OBJCXXFLAGS@
ldflags := @LDFLAGS@
library := @LIBS@ @LTLIBAPR@ @LTLIBICONV@
Expand Down Expand Up @@ -178,11 +178,11 @@ all: $(all)
clean::
rm -rf *.lo *.o *.d *.t.hpp .libs */*.lo */.libs libcycript.la $(all) Struct.hpp lex.cy.c Cycript.tab.cc Cycript.tab.hh location.hh position.hh stack.hh cyrver Cycript.yy Cycript.l control Bridge.gperf Bridge.hpp Cycript.output
ifneq ($(srcdir),.)
rm -rf sig ObjectiveC
rm -rf Mach ObjectiveC sig
endif

distclean: clean
rm -f GNUmakefile config.log config.status libtool
rm -f GNUmakefile Makefile config.log config.status libtool

%.yy: %.yy.in
$(srcdir)/Filter.sh <$< >$@ $(filters)
Expand Down
10 changes: 10 additions & 0 deletions Makefile.in
@@ -0,0 +1,10 @@
# @configure_input@
# The real makefile is GNUmakefile

gmake=@GMAKE@

all:
$(gmake) $@

.DEFAULT:
$(gmake) $@

0 comments on commit 0a77472

Please sign in to comment.