diff options
author | June McEnroe <june@causal.agency> | 2020-12-23 22:19:17 +0000 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-12-23 22:19:17 +0000 |
commit | 77ce14c2d963df704d272ab42a1a8a441ffc031a (patch) | |
tree | 6acca87e5dcb9fbde3290d7f2652acc7a89bc3d9 /bin/dash | |
parent | Switch from 1sh to dash (diff) | |
download | src-77ce14c2d963df704d272ab42a1a8a441ffc031a.tar.gz src-77ce14c2d963df704d272ab42a1a8a441ffc031a.zip |
Fix dash Makefile compatibility with BSD make
Diffstat (limited to '')
-rw-r--r-- | bin/dash/src/Makefile.am | 20 |
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 |