chiark / gitweb /
wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 11 Nov 2019 02:12:54 +0000 (02:12 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 11 Nov 2019 02:12:54 +0000 (02:12 +0000)
build-aux/subdirmk-setup

index f781325..603dab6 100755 (executable)
@@ -79,9 +79,11 @@ sub write_makefile ($$) {
     my $cd = $depth ? join('/', ('..',) x $depth) : '.';
     o <<END;
 default: all
-.SUFFIXES:
-%:
+%:     FORCE-ALWAYS-RUN
        \$(MAKE) -C $cd -f subdirs.mk ${dir_prefix}\$@
+Makefile FORCE-ALWAYS-RUN:
+       : \$@
+.SUFFIXES:
 END
 }