./0040755000175100017510000000000007674245702010252 5ustar gholtgholt./Makefile0100644000175100017510000000103407224150776011702 0ustar gholtgholt# # A simple test of recursive make. # XVAR = 1 # Gets overridden on the command line. .PHONY: all d all: a b %: subdir1/% : foreach subdir1/? # foreach necessary to exclude Makefile. cp $< $@ # Test passing a variable through the environment to recursive make. subdir1/a subdir1/b: cd subdir1 && EVAR=evar $(MAKE) YVAR=2 XVAR=3 $(notdir $@) subdir1/c: d cat e > $@ echo c >> $@ # # Test waiting for recursive make to finish. # d: $(MAKE) e e: echo $@ $(XVAR) > $@ $(phony clean): rm -rf *~ subdir/*~ .makepp* ? subdir1/? ./is_relevant0100755000175100017510000000014607674245702012511 0ustar gholtgholt#!/bin/sh # # Parallel builds don't work under cygwin. # ${PERL-perl} -e '$^O eq "cygwin" && exit 1' ./subdir1/0040755000175100017510000000000007224157105011611 5ustar gholtgholt./subdir1/Makefile0100644000175100017510000000032207224151042013235 0ustar gholtgholt a: echo a $(EVAR) $(XVAR) > $@ b: c cat c > $@ echo b $(YVAR) >> $@ # # This should not override a rule in the upper level makefile, because it # invokes recursive make. # c: cd .. && $(MAKE) subdir1/$@ ./subdir1/.makepp/0040755000175100017510000000000007224157023013143 5ustar gholtgholt./subdir1/.makepp/a0100644000175100017510000000017207224157022013302 0ustar gholtgholtARCH=i686-linux CWD=.. DEP_SIGS= SIGNATURE=978378258 SORTED_DEPS= BUILD_SIGNATURE=978378258 COMMAND=echo a evar 3 > a\012 ./subdir1/.makepp/b0100644000175100017510000000022107224157023013277 0ustar gholtgholtARCH=i686-linux CWD=.. DEP_SIGS=978378259\001 SIGNATURE=978378259 SORTED_DEPS=c BUILD_SIGNATURE=978378259 COMMAND=cat c > b\012echo b 2 >> b\012 ./subdir1/.makepp/c0100644000175100017510000000023107224157023013301 0ustar gholtgholtARCH=i686-linux CWD=../.. DEP_SIGS=\001 SIGNATURE=978378259 SORTED_DEPS=d BUILD_SIGNATURE=978378259 COMMAND=cat e > subdir1/c\012echo c >> subdir1/c\012 ./subdir1/Makefile.~1~0100644000175100017510000000027307143104765014007 0ustar gholtgholt a: echo a > $@ b: c cat $^ > $@ echo b >> $@ # # This should not override a rule in the upper level makefile, because it # invokes recursive make. # c: cd .. && $(MAKE) subdir1/$@ ./subdir1/Makefile.~2~0100644000175100017510000000027207170515247014010 0ustar gholtgholt a: echo a > $@ b: c cat c > $@ echo b >> $@ # # This should not override a rule in the upper level makefile, because it # invokes recursive make. # c: cd .. && $(MAKE) subdir1/$@ ./subdir1/Makefile.~3~0100644000175100017510000000031207171235635014005 0ustar gholtgholt a: echo a $(XVAR) > $@ b: c cat c > $@ echo b $(YVAR) >> $@ # # This should not override a rule in the upper level makefile, because it # invokes recursive make. # c: cd .. && $(MAKE) subdir1/$@ ./subdir1/Makefile.~4~0100644000175100017510000000033407223546226014011 0ustar gholtgholt a: printenv echo a $(EVAR) $(XVAR) > $@ b: c cat c > $@ echo b $(YVAR) >> $@ # # This should not override a rule in the upper level makefile, because it # invokes recursive make. # c: cd .. && $(MAKE) subdir1/$@ ./subdir1/.testfile0100644000175100017510000000000007171236746013426 0ustar gholtgholt./answers/0040755000175100017510000000000007224157051011722 5ustar gholtgholt./answers/a0100644000175100017510000000001107224157022012050 0ustar gholtgholta evar 3 ./answers/b0100644000175100017510000000001207224157023012053 0ustar gholtgholte 1 c b 2 ./answers/e0100644000175100017510000000000407224157023012057 0ustar gholtgholte 1 ./answers/.Wastebasket/0040755000175100017510000000000007224157043014256 5ustar gholtgholt./answers/.Wastebasket/a0100644000175100017510000000000407171236645014417 0ustar gholtgholta 3 ./answers/.Wastebasket/b0100644000175100017510000000001407171236646014422 0ustar gholtgholte 2 d c b 2 ./answers/.Wastebasket/d0100644000175100017510000000000607171236646014425 0ustar gholtgholte 2 d ./answers/.Wastebasket/e0100644000175100017510000000000407171236646014424 0ustar gholtgholte 2 ./answers/n_files0100644000175100017510000000000207170520346013252 0ustar gholtgholt8