Hi all,

I am trying to find the cleanest way of writing a Makefile to only make 
targets in the current directory and handle all other files differently.

I can write an implicit rule to handle all files with an absolute path but 
not a relative path.
This is because you cannot use '%' wildcard char more than once:
/% : works
%/% : doesn't work

For example, this works for absolute paths:

foo: $(CURDIR)/goo/goo.xms
        @echo $@
        @touch $@
/% :
        @: $(call cdtouch,$@)

cdtouch = $(shell \
        cd $(dir $(1)); touch $(notdir $(1))\
)

Any ideas on how I can handle all relative paths?
Thanks,
Greg Keraunen <[EMAIL PROTECTED]> 



_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to