]> git.openfabrics.org - compat-rdma/compat.git/commitdiff
compat: split COMPAT_CONFIG and COMPAT_AUTOCONF targets
authorLuis R. Rodriguez <mcgrof@frijolero.org>
Mon, 27 Feb 2012 22:16:32 +0000 (14:16 -0800)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Mon, 27 Feb 2012 22:16:32 +0000 (14:16 -0800)
Let GNU Make take care of the dependency map.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Makefile

index 2f47e3f93b914a8cc5bc70634ace470bf6822cb0..537d759a72c2e005c53b4fed2ba64c5ac7ed17f4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -58,11 +58,11 @@ install: modules
                modules_install
        depmod -a
 
-$(COMPAT_AUTOCONF): ;
+$(COMPAT_AUTOCONF): $(COMPAT_CONFIG)
+       +@$(PWD)/scripts/gen-compat-autoconf.sh $(COMPAT_CONFIG) > $(COMPAT_AUTOCONF)
 
 $(COMPAT_CONFIG):
        +@$(PWD)/scripts/gen-compat-config.sh > $(COMPAT_CONFIG)
-       +@$(PWD)/scripts/gen-compat-autoconf.sh $(COMPAT_CONFIG) > $(COMPAT_AUTOCONF)
        @$(MAKE) -C $(PWD) modules
 
 install: modules