diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-03-30 12:21:49 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-03-31 19:08:18 -0700 |
commit | 3a2c3c2288dbdd2cbeeb9ba89244f54155305511 (patch) | |
tree | cd86d40fd1e0368fd338d5dfebf8936e4d717928 /Makefile.in | |
parent | 9762a8ca1eac31ab66dfc16e7c6b688838caee9a (diff) |
Remove some GNU-makeisms from the Makefile to try to get us to build with BSD make. Not quite there yet.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in index 0706fe5f..83774d82 100644 --- a/Makefile.in +++ b/Makefile.in @@ -157,7 +157,7 @@ HDR_FILES_SRC := doc_src/index.hdr.in doc_src/commands.hdr.in doc_src/design.hdr # These are the generated result files # -HDR_FILES := $(subst .hdr.in,.hdr,$(HDR_FILES_SRC)) +HDR_FILES := $(HDR_FILES_SRC:.hdr.in=.hdr) # Use a pattern rule so that Make knows to only issue one invocation # per http://www.gnu.org/software/make/manual/make.html#Pattern-Intro @@ -350,9 +350,9 @@ doc_src/commands.hdr:$(HELP_SRC) doc_src/commands.hdr.in cat $@.in | awk '{if ($$0 ~ /@command_list@/){ system("cat command_list.txt");} else{ print $$0;}}' >$@ -toc.txt: $(subst index.hdr,index.hdr.in,$(HDR_FILES)) +toc.txt: $(HDR_FILES:index.hdr=index.hdr.in) -rm toc.tmp $@ - for i in $(subst index.hdr,index.hdr.in,$(HDR_FILES)); do\ + for i in $(HDR_FILES:index.hdr=index.hdr.in); do\ NAME=`basename $$i .hdr`; \ NAME=`basename $$NAME .hdr.in`; \ sed <$$i >>toc.tmp -n \ |