chiark / gitweb /
subdirmk: stub Makefiles: filter out `all'
[subdirmk.git] / generate
index dd22146339b130fc6ffbb7efdd9ab3ce0ccc8515..87e2214965846f2ed5d81905f8197844b6fe6bd6 100755 (executable)
--- a/generate
+++ b/generate
@@ -99,7 +99,7 @@ sub write_makefile ($$) {
     my $cd = $depth ? join('/', ('..',) x $depth) : '.';
     o <<END;
 default: all
-\$(MAKECMDGOALS) all: run-main.mk
+\$(filter-out all,\$(MAKECMDGOALS)) all: run-main.mk
        \@:
 Makefile run-main.mk:
        \$(MAKE) -C $cd -f main.mk \$(addprefix ${dir_prefix},\$(or \$(MAKECMDGOALS),all))