Commit 333dec5a authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

implemented libraries package rule

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 5268
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent cfe26de5
......@@ -106,12 +106,12 @@ install-include: $(INSTINCLUDE)
reinstall: $(REINSTALL)
.PHONY: doc
doc: $(DOCTARGETS)
.PHONY: package
package: $(PACKAGETARGETS)
.PHONY: packages
packages: $(PACKAGETARGETS)
.PHONY: show
show: ; @echo $(TARGETS)
flist: $(shell find . -name Makefile)
flist: $(shell find . -name Makefile) $(TF_EDIT)
echo $^ | tr ' ' '\n' | sort > $@
.PHONY: edit
......@@ -137,14 +137,25 @@ clean:
-(cd $<; $(MAKE) doxydoc)
%.clean: %; cd $<; $(MAKE) clean
#----------------------------------------------------------------------
# testing package design
#======================================================================
# create package
# --------------
# is delegated to Makefile.packages
ifdef TF_MAKEPKG
PACKAGELIBS=$(LIBDIRS)
PACKAGEEXPORTCONFIG=trunk/src/libs/$(LIB):src/$(LIB)
PACKAGETARGETCONFIG=src/$(LIB):install:-i src/$(LIB):doc:-i
PACKAGEEXPORT=$(foreach LIB,$(PACKAGELIBS),$(PACKAGEEXPORTCONFIG))
PACKAGETARGET=$(foreach LIB,$(PACKAGELIBS),$(PACKAGETARGETCONFIG))
#PACKAGELIBS=$(wordlist 1,3,$(LIBDIRS))
PACKAGEEXPORTCFG=$(foreach LIB,$(PACKAGELIBS),trunk/src/libs/$(LIB):src/$(LIB))
PACKAGETARGETCFG=$(foreach TARGET,install:-i reinstall: doc:-i,$(foreach LIB,$(PACKAGELIBS),src/$(LIB):$(TARGET)))
.PHONY: cfgecho
cfgecho:
echo $(PACKAGEEXPORT)
echo $(PACKAGETARGET)
@echo $(PACKAGEEXPORTCFG)
@echo $(PACKAGETARGETCFG)
.PHONY: package
package: $(TF_MAKEPKG)
$(MAKE) -f $< \
PACKAGE=libraries \
PACKAGEEXPORT="$(PACKAGEEXPORTCFG)" \
PACKAGETARGETS="$(PACKAGETARGETCFG)" \
PACKAGELIBS="-"
endif
# ----- END OF Makefile -----
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment