diff --git a/make/targets-tools.mk b/make/targets-tools.mk index 96eebce7..1654af4a 100644 --- a/make/targets-tools.mk +++ b/make/targets-tools.mk @@ -5,9 +5,10 @@ include $(MODDIR)/make/rules.mk +ifneq ($(strip $(SRC_ALL_CPP)),) + # mandatory targets all: all.link -clean: objclean textclean localclean profclean clean.link install: $(ALL) # convenience targets @@ -17,9 +18,6 @@ clean-link: clean.link # rules all.link: $(PROJECT) -clean.link: - if [ -L $(PROJECT) -a "`readlink $(PROJECT)`" = . ]; then rm $(PROJECT); fi - $(PROJECT): ln -s . $@ @@ -27,3 +25,10 @@ $(LIB_SO): $(OBJ) all.done: $(PREREQ_DONE) $(BUILD_HDR) $(BUILD_EXE_SH) $(MEMBERS) $(LIB_A) $(LIB_SO) +endif + +clean: objclean textclean localclean profclean clean.link + +clean.link: + if [ -L $(PROJECT) -a "`readlink $(PROJECT)`" = . ]; then rm $(PROJECT); fi + diff --git a/make/tools.mk b/make/tools.mk index be0b06a6..f53b4814 100644 --- a/make/tools.mk +++ b/make/tools.mk @@ -11,5 +11,6 @@ include $(MODDIR)/make/backup.mk LOCAL_CFLAGS += -D_USRDLL -DALL_EXPORTS LOCAL_CPPFLAGS += -D_USRDLL -DALL_EXPORTS +ifneq ($(SRC_ALL_CPP),) all: all.done - +endif