ref: 50ba813176f09728635bd8aa849b18fd2644c037
parent: f5d6bef3655e4a6d692c3cc3116f9fbea1aef257
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Jan 25 10:59:55 EST 2017
Makefile: Don't use the name of the driver binary in main Makefile Using the name fo the driver binary without prerequisites was avoiding to rebuild the driver when scc.c was changed, because since it hasn't prerequisites it was updated always.
--- a/Makefile
+++ b/Makefile
@@ -6,13 +6,13 @@
DIRS = lib cc1 cc2 driver/$(DRIVER)
-all: driver/$(DRIVER)/scc
+all: scc-driver
for i in $(ARCHS); \
do \
$(MAKE) $$i || exit; \
done
-driver/$(DRIVER)/scc:
+scc-driver:
cd driver/$(DRIVER)/ && $(MAKE) scc
ln -f driver/$(DRIVER)/scc bin/scc