Changeset 364


Ignore:
Timestamp:
04/19/15 15:36:16 (7 years ago)
Author:
Maciej Komosinski
Message:

Warn non incorrect paths in makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/Makefile-maintain

    r363 r364  
    44endif
    55
     6MISSING_ALL_DIRS=$(strip $(foreach DIR,$(shell echo $(ALL_DIRS)), $(if $(wildcard $(DIR)),,$(DIR))))
     7
    68clean:
    79ifeq "$(ALL_DIRS)$(ALL_DIRS)" ""
    810        @echo "Makefile-maintain clean: ALL_DIRS and/or EXTRA_CLEAN_FILES must be defined"
    911else
    10         @echo -e -n $(foreach DIR,$(shell echo $(ALL_DIRS)), \
    11         $(if $(wildcard $(DIR)),,Missing directory:$(DIR)\\n) \
    12         )
     12        @echo -e -n $(if $(MISSING_ALL_DIRS),\\nMissing ALL_DIRS paths:\\n$(MISSING_ALL_DIRS)\\n\\n)
    1313        rm -f $(EXTRA_CLEAN_FILES) $(ALL_DIRS)/*.{a,o,d}
    1414endif
Note: See TracChangeset for help on using the changeset viewer.