mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
targets-tools.mk, tools.mk: Preparted for SRC_ALL_CPP empty
This commit is contained in:
parent
1e82d1c3cc
commit
16090f9371
2 changed files with 11 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue