From 685bf4bdc27750a375e2de11275750a88950eb3d Mon Sep 17 00:00:00 2001 From: Brian Read Date: Wed, 22 Mar 2023 15:03:42 +0000 Subject: [PATCH] Add archivefile rule - calling trymake.sh --- Makefile.common | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/Makefile.common b/Makefile.common index e6caa1f..cd67098 100644 --- a/Makefile.common +++ b/Makefile.common @@ -160,8 +160,8 @@ 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 ?= archivefile -TARGETS ?= +TARGETS ?= archivefile +#TARGETS ?= # default target - retrieve the sources and make the module specific targets sources: $(SOURCEFILES) $(TARGETS) @@ -345,21 +345,9 @@ endif test-srpm: srpm # Create the tar file used to transport the source tree -archivefile: - @echo "Making archive $(TREEPATH).$(EXT)" - @echo "TEMPDIR:$(TEMPDIR)" - mkdir -p $(TEMPDIR)/$(TREEPATH) - cp -r root $(TEMPDIR)/$(TREEPATH) - if test -f createlinks ; then cp createlinks $(TEMPDIR)/$(TREEPATH) ; fi ; - if test -f COPYING ; then cp COPYING $(TEMPDIR)/$(TREEPATH) ; fi ; - if test -f LICENSE ; then cp LICENSE $(TEMPDIR)/$(TREEPATH) ; fi ; - if test -f Copying ; then cp Copying $(TEMPDIR)/$(TREEPATH) ; fi ; - if test -f Artistic ; then cp Artistic $(TEMPDIR)/$(TREEPATH) ; fi ; - if test -f *.c ; then cp *.c $(TEMPDIR)/$(TREEPATH) ; fi ; - rm -f $TREEPATH.$EXT* - tar -czvf $(TREEPATH).$(EXT) -C $(TEMPDIR) $(TREEPATH) - find $(TEMPDIR) -delete - +archivefile:: + trymake.sh + verrel: @echo $(NAME)-$(VERSION)-$(RELEASE)