Commit b8510fee b8510feeb764683f9dda8a728c10a339560aa617 by Sergey Poznyakoff

Use $< only in implicit rules. Non-gnu implementation of make expand

it to a null string if used within an explicit rule.
1 parent e47ca10b
...@@ -54,7 +54,7 @@ ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_L ...@@ -54,7 +54,7 @@ ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_L
54 54
55 GUILE_DOC_SNARF=$(top_srcdir)/scripts/guile-$(GUILE_SNARF_VERSION)/guile-doc-snarf 55 GUILE_DOC_SNARF=$(top_srcdir)/scripts/guile-$(GUILE_SNARF_VERSION)/guile-doc-snarf
56 56
57 SUFFIXES=.x .doc .inc 57 SUFFIXES=.x .doc .inc .in
58 58
59 .c.x: 59 .c.x:
60 AWK=$(AWK) \ 60 AWK=$(AWK) \
...@@ -73,6 +73,8 @@ guile-procedures.txt: $(DOT_DOC_FILES) ...@@ -73,6 +73,8 @@ guile-procedures.txt: $(DOT_DOC_FILES)
73 cat $(DOT_DOC_FILES) > $@ 73 cat $(DOT_DOC_FILES) > $@
74 74
75 mailutils.scm: mailutils.scm.in $(libmu_scm_la_SOURCES:.c=.inc) 75 mailutils.scm: mailutils.scm.in $(libmu_scm_la_SOURCES:.c=.inc)
76
77 .in:
76 m4 -DVERSION=$(VERSION) -DLIBDIR=$(libdir) \ 78 m4 -DVERSION=$(VERSION) -DLIBDIR=$(libdir) \
77 -DBUILDDIR=$(top_builddir)/libmu_scm $< > $@ 79 -DBUILDDIR=$(top_builddir)/libmu_scm $< > $@
78 80
......
...@@ -92,7 +92,10 @@ mhlib_DATA = replcomps mhl.format $(LISPSRC) ...@@ -92,7 +92,10 @@ mhlib_DATA = replcomps mhl.format $(LISPSRC)
92 EXTRA_DIST = replcomps mhl.format mailutils-mh.eli mh_fmtgram.y pick.y 92 EXTRA_DIST = replcomps mhl.format mailutils-mh.eli mh_fmtgram.y pick.y
93 DISTCLEANFILES = mailutils-mh.el 93 DISTCLEANFILES = mailutils-mh.el
94 94
95 SUFFIXES = .eli .el
95 mailutils-mh.el: mailutils-mh.eli 96 mailutils-mh.el: mailutils-mh.eli
97
98 .eli.el:
96 sed "s,BINDIR,$(bindir),g;s,MHLIBDIR,$(mhlibdir),g" $< > $@ 99 sed "s,BINDIR,$(bindir),g;s,MHLIBDIR,$(mhlibdir),g" $< > $@
97 100
98 INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/lib -I${top_srcdir}/mailbox @INTLINCS@ 101 INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/lib -I${top_srcdir}/mailbox @INTLINCS@
......