Add in creating tar archive file so that make mockbuild works

This commit is contained in:
Brian Read 2023-02-24 10:14:28 +00:00
parent 7f21f2436d
commit f5d26ad6e6

View File

@ -22,7 +22,7 @@ endif
BASEDIR := $(shell basename `pwd`) BASEDIR := $(shell basename `pwd`)
# BRANCH := $(BASEDIR) # BRANCH := $(BASEDIR)
# Get tag for module - e.g. contribs10 or sme10 from file left by cvs2git conversion script # Get tag for module - e.g. contribs10 or sme10 from file left by cvs2git conversion script
BRANCH := `cat contriborbase` BRANCH := $(shell cat contriborbase)
BRANCHINFO = $(shell grep ^$(BRANCH): $(COMMON_DIR)/branches | cut -d: --output-delimiter=" " -f2-) BRANCHINFO = $(shell grep ^$(BRANCH): $(COMMON_DIR)/branches | cut -d: --output-delimiter=" " -f2-)
TARGET := $(word 1, $(BRANCHINFO)) TARGET := $(word 1, $(BRANCHINFO))
DIST = $(word 2, $(BRANCHINFO)) DIST = $(word 2, $(BRANCHINFO))
@ -157,7 +157,7 @@ PREP_ARCHES = $(addprefix prep-,$(ARCHES))
# The TARGETS define is meant for local module targets that should be # The TARGETS define is meant for local module targets that should be
# made in addition to the SOURCEFILES whenever needed # made in addition to the SOURCEFILES whenever needed
TARGETS ?= TARGETS ?= archivefile
# default target - retrieve the sources and make the module specific targets # default target - retrieve the sources and make the module specific targets
sources: $(SOURCEFILES) $(TARGETS) sources: $(SOURCEFILES) $(TARGETS)
@ -348,7 +348,7 @@ archivefile:
cp -r root $(TEMPDIR)/$(TREEPATH)/ cp -r root $(TEMPDIR)/$(TREEPATH)/
cp createlinks $(TEMPDIR)/$(TREEPATH)/ cp createlinks $(TEMPDIR)/$(TREEPATH)/
rm -f $TREEPATH.$EXT* rm -f $TREEPATH.$EXT*
tar -czvf $(TREEPATH).$(EXT) -C $(TEMPDIR)/$(TREEPATH) . tar -czvf $(TREEPATH).$(EXT) -C $(TEMPDIR) $(TREEPATH)
find $(TEMPDIR) -delete find $(TEMPDIR) -delete
verrel: verrel: