On Mon, Aug 8, 2011 at 6:13 PM, Ajay Jain <[email protected]> wrote: > 1) Check to make sure that WORK_DIR is not NULL >
One way: ifneq (,$(WORK_DIR)) ... endif 2) Check to make sure that WORK_DIR exists > (inside the above ifneq block...) ifeq (1,$(words $(wildcard $(WORK_DIR))) ... endif 3) Check to make sure that WORK_DIR is NOT a part of TOP_DIR/Parent > Directory > You could implement that using $(filter) or $(filter-out) to strip the TOP_DIR part of WORK_DIR (i never remember which filter func does what), and then check for $(TOP_DIR)/whateverIsLeftOver. Perhaps $(dir) and/or $(notdir) would be appropriate. But there are probably simpler ways to do those things. Let's wait and see what the Gurus can tell us... -- ----- stephan beal http://wanderinghorse.net/home/stephan/ _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
