Sam Steingold wrote:
so,
I have this:
---------------------------------------------------
.PHONY : gllib
gllib:
mkdir -p $@
if test ! -f $@/Makefile; then sh config.status $@/Makefile
depfiles; fi
cd $@ && $(MAKE) CFLAGS="$(SUBDIR_CFLAGS)"
---------------------------------------------------
I think this does what you want - things should depend on
"gllib/stamp-make" to make sure that it gets rebuilt.
---------------------------------------------------
gllib/Makefile: config.status
mkdir -p $(dir $@)
sh config.status $@ depfiles
gllib/stamp-make: gllib/Makefile
cd $(dir $@) && $(MAKE) CFLAGS="$(SUBDIR_CFLAGS)"
touch $@
---------------------------------------------------
Should gllib/Makefile also depends on depfiles?
MM
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make