From f5d26ad6e67993a7864c831585b687cb8016647b Mon Sep 17 00:00:00 2001 From: Brian Read Date: Fri, 24 Feb 2023 10:14:28 +0000 Subject: [PATCH] Add in creating tar archive file so that make mockbuild works --- Makefile.common | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.common b/Makefile.common index 40aa726..14d73dc 100644 --- a/Makefile.common +++ b/Makefile.common @@ -22,7 +22,7 @@ endif BASEDIR := $(shell basename `pwd`) # BRANCH := $(BASEDIR) # 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-) TARGET := $(word 1, $(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 # made in addition to the SOURCEFILES whenever needed -TARGETS ?= +TARGETS ?= archivefile # default target - retrieve the sources and make the module specific targets sources: $(SOURCEFILES) $(TARGETS) @@ -348,7 +348,7 @@ archivefile: cp -r root $(TEMPDIR)/$(TREEPATH)/ cp createlinks $(TEMPDIR)/$(TREEPATH)/ rm -f $TREEPATH.$EXT* - tar -czvf $(TREEPATH).$(EXT) -C $(TEMPDIR)/$(TREEPATH) . + tar -czvf $(TREEPATH).$(EXT) -C $(TEMPDIR) $(TREEPATH) find $(TEMPDIR) -delete verrel: