Revision: 11398 http://gar.svn.sourceforge.net/gar/?rev=11398&view=rev Author: skayser Date: 2010-10-25 16:43:05 +0000 (Mon, 25 Oct 2010)
Log Message: ----------- gar: introduce an overridable GARDIR in category.mk to eventually get rid of the gar/ subdir in each build dir Modified Paths: -------------- csw/mgar/gar/v2/category.mk Modified: csw/mgar/gar/v2/category.mk =================================================================== --- csw/mgar/gar/v2/category.mk 2010-10-25 16:11:07 UTC (rev 11397) +++ csw/mgar/gar/v2/category.mk 2010-10-25 16:43:05 UTC (rev 11398) @@ -2,8 +2,10 @@ # This makefile is to be included from Makefiles in each category # directory. -ifeq (,$(wildcard gar/categories/$(CATEGORIES)/category.mk)) - $(error The category '$(CATEGORIES)' is invalid. Valid categories are $(patsubst gar/categories/%,%,$(wildcard gar/categories/*))) +GARDIR ?= gar/ + +ifeq (,$(wildcard $(GARDIR)/categories/$(CATEGORIES)/category.mk)) + $(error The category '$(CATEGORIES)' is invalid. Valid categories are: $(patsubst $(GARDIR)/categories/%,%,$(wildcard $(GARDIR)/categories/*))) endif -include gar/categories/$(CATEGORIES)/category.mk +include $(GARDIR)/categories/$(CATEGORIES)/category.mk This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ devel mailing list devel@lists.opencsw.org https://lists.opencsw.org/mailman/listinfo/devel