From e2b6303ef845c2108c57a3bee38094336d33caaf Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 20 Nov 2019 10:56:09 -0500 Subject: make better use of multiple target specification and implicit rules --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Makefile') 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 -- cgit v1.2.1