Add archivefile rule - calling trymake.sh

This commit is contained in:
Brian Read 2023-03-22 15:03:42 +00:00
parent ff57170d3f
commit 685bf4bdc2

View File

@ -160,8 +160,8 @@ 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 ?= archivefile TARGETS ?= archivefile
TARGETS ?= #TARGETS ?=
# 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)
@ -345,21 +345,9 @@ endif
test-srpm: srpm test-srpm: srpm
# Create the tar file used to transport the source tree # Create the tar file used to transport the source tree
archivefile: archivefile::
@echo "Making archive $(TREEPATH).$(EXT)" trymake.sh
@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
verrel: verrel:
@echo $(NAME)-$(VERSION)-$(RELEASE) @echo $(NAME)-$(VERSION)-$(RELEASE)