summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-23 22:19:17 +0000
committerJune McEnroe <june@causal.agency>2020-12-23 22:19:17 +0000
commit3776e149292d24b87c98da6532db57f2591b4122 (patch)
tree59f94ad408d13bfb755820e3d29cda144f8c56e5 /bin
parentSwitch from 1sh to dash (diff)
downloadsrc-3776e149292d24b87c98da6532db57f2591b4122.tar.gz
src-3776e149292d24b87c98da6532db57f2591b4122.zip
Fix dash Makefile compatibility with BSD make
Diffstat (limited to 'bin')
-rw-r--r--bin/dash/src/Makefile.am20
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/dash/src/Makefile.am b/bin/dash/src/Makefile.am
index 17324653..fb8229f1 100644
--- a/bin/dash/src/Makefile.am
+++ b/bin/dash/src/Makefile.am
@@ -34,7 +34,7 @@ HELPERS = mkinit mksyntax mknodes mksignames
 
 BUILT_SOURCES = builtins.h nodes.h syntax.h token.h token_vars.h
 CLEANFILES = \
-	$(BUILT_SOURCES) $(patsubst %.o,%.c,$(dash_LDADD)) \
+	$(BUILT_SOURCES) $(dash_LDADD:%.o=%.c) \
 	$(HELPERS) builtins.def
 
 man_MANS = dash.1
@@ -44,27 +44,27 @@ EXTRA_DIST = \
 	mknodes.c nodetypes nodes.c.pat mksyntax.c mksignames.c
 
 token.h token_vars.h: mktokens
-	$(AM_V_GEN)$(SHELL) $^
+	$(AM_V_GEN)$(SHELL) mktokens
 
 builtins.def: builtins.def.in $(top_builddir)/config.h
-	$(AM_V_CC)$(COMPILE) -E -x c -o $@ $<
+	$(AM_V_CC)$(COMPILE) -E -x c -o $@ builtins.def.in
 
 builtins.c builtins.h: mkbuiltins builtins.def
-	$(AM_V_GEN)$(SHELL) $^
+	$(AM_V_GEN)$(SHELL) mkbuiltins builtins.def
 
 init.c: mkinit $(dash_CFILES)
-	$(AM_V_GEN)./$^
+	$(AM_V_GEN)./mkinit $(dash_CFILES)
 
 nodes.c nodes.h: mknodes nodetypes nodes.c.pat
-	$(AM_V_GEN)./$^
+	$(AM_V_GEN)./mknodes nodetypes nodes.c.pat
 
 syntax.c syntax.h: mksyntax
-	$(AM_V_GEN)./$^
+	$(AM_V_GEN)./mksyntax
 
 signames.c: mksignames
-	$(AM_V_GEN)./$^
+	$(AM_V_GEN)./mksignames
 
 mksyntax: token.h
 
-$(HELPERS): %: %.c
-	$(AM_V_CC)$(COMPILE_FOR_BUILD) -o $@ $<
+$(HELPERS):
+	$(AM_V_CC)$(COMPILE_FOR_BUILD) -o $@ $@.c