commit 5b5f0fb6e9675bd768af2c3c90b8a0cbc94bf0fb
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Wed Jan 25 15:59:55 2017 +0100
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Wed Jan 25 15:59:55 2017 +0100

    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.

diff --git a/Makefile b/Makefile
index 970c578..7fa3f8e 100644
--- a/Makefile
+++ b/Makefile
@@ -6,13 +6,13 @@ include config.mk
 
 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
 

Reply via email to