diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-11-20 10:56:09 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-11-20 10:56:09 -0500 |
commit | e2b6303ef845c2108c57a3bee38094336d33caaf (patch) | |
tree | ff6f4f727a3335669f00fb5f9c9b313cc80119d7 /src/Makefile | |
parent | 572dfbd3cd51ea5b9250d2b95e7a8edc9100da7f (diff) |
make better use of multiple target specification and implicit rules
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index 82ac0b1..05f2a22 100644 --- a/src/Makefile +++ b/src/Makefile @@ -14,7 +14,7 @@ bosix: $(OBJS) deps: printf '.POSIX:\n\n' > .deps.mk - for i in *.c; do printf '%s.o: %s ' "$$(basename $$i .c)" "$$i"; grep include "$$i" | sed -e 's/^.*"\(.*\)".*/\1/g' | paste -d' ' -s -; printf '\t$$(CC) -c $$(CFLAGS) %s\n\n' "$$i"; done >> .deps.mk + grep include *.c | sed -e 's/#include//g;s/"//g;s/\.c:/.o:/g' >> .deps.mk printf '.POSIX:\n\nOBJS=' > .objs.mk for i in *.c; do printf '\\\n\t%s.o' $$(basename $$i .c); done >> .objs.mk printf '\n' >> .objs.mk |