On Mon, Jan 30, 2012 at 07:46:39PM +0100, Bernhard Walle wrote: > * Michael Olbrich <[email protected]> [2012-01-30 15:06]: > > > > This is not correct. It will sort all post files and does not honor the > > order of PTXDIST_PATH_POSTRULES. This should probably be something like > > this (untested): > > > > $(foreach dir, $(call reverse,$(subst > > :,$(space),$(PTXDIST_PATH_POSTRULES))), include (sort $(wildcard > > $(dir)/*.make))) > > I'm not really a make guru like you. Your example doesn't work. > Following works: > > include $(foreach dir, $(call reverse,$(subst > :,$(space),$(PTXDIST_PATH_POSTRULES))), $(sort $(wildcard $(dir)/*.make))) > > Does that look correct in your eyes?
Yes, this is better. Don't forget PRERULES in the patch. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list [email protected]
