jw-pkg/make/targets-tools.mk

41 lines
710 B
Makefile
Raw Normal View History

# generic utility modules
# (c) 2001 jannet it services
# contact@jannet.de
# $Id$
all: all.link
include $(MODDIR)/make/rules.mk
ifneq ($(strip $(SRC_ALL_CPP)),)
# mandatory targets
install: $(ALL)
# convenience targets
link: all.link
clean-link: clean.link
all.link: $(PROJECT)
$(PROJECT):
ln -s . $@
ifeq ($(SCOPE_PREFIX),)
all.link: $(BUILD_HDRDIR)/$(PROJECT)
$(BUILD_HDRDIR)/$(PROJECT):
cd $(BUILD_HDRDIR) && ln -s . $(PROJECT)
endif
$(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