From 38a2807d22ce1a08bc39b94e9072a9f8f52cd86f Mon Sep 17 00:00:00 2001 From: Victor Wagner Date: Wed, 25 May 2016 07:57:56 +0300 Subject: [PATCH] Wrote make dist target --- Makefile.in | 20 +++++++++++++++++--- doc/Makefile.in | 11 ++++++----- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/Makefile.in b/Makefile.in index 1f92217..ab4d65a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,7 +1,9 @@ # Your C compilier and flags SHELL = /bin/sh - +PACKAGE_VERSION = @PACKAGE_VERSION@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +tardir=${PACKAGE_TARNAME}-${PACKAGE_VERSION} all: for i in src doc charsets; do\ @@ -20,7 +22,19 @@ distclean: for i in src doc charsets; do\ (cd $$i; $(MAKE) distclean);\ done - rm Makefile config.* + rm -f Makefile config.* dist: + $(MAKE) clean + mkdir $(tardir) + cp -rp src doc compat charsets $(tardir) + cp -rp install-sh missing mkinstalldirs CODING.STD COPYING $(tardir) + cp -rp INSTALL INSTALL.dos Makefile Makefile.in NEWS README TODO $(tardir) + cp -rp acconfig.h configure configure.in $(tardir) + $(MAKE) -C $(tardir) distclean $(MAKE) -C doc dosdoc - $(MAKE) distclean + cp -rp doc/*.txt doc/*.ps $(tardir)/doc + tar cf $(tardir).tar $(tardir) + gzip -c $(tardir).tar > $(tardir).tar.gz + rm -rf $(tardir) + + diff --git a/doc/Makefile.in b/doc/Makefile.in index 40bf0e0..81ebb00 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -24,10 +24,10 @@ all: dosdoc: catdoc.txt catdoc.ps xls2csv.txt xls2csv.ps catppt.txt catppt.ps clean: - $(RM) -f catppt.txt catppt.ps catppt.1 \ - catdoc.1 catdoc.txt catdoc.ps \ - xls2csv.1 xls2csv.txt xls2csv.ps \ - wordview.1 wordview.txt wordview.ps build + $(RM) catppt.txt catppt.ps \ + catdoc.txt catdoc.ps \ + xls2csv.txt xls2csv.ps \ + wordview.txt wordview.ps build install: @installtargets@ install-catdoc: catdoc.1 xls2csv.1 catppt.1 ../mkinstalldirs $(installroot)$(mandir) @@ -38,4 +38,5 @@ install-wordview: ../mkinstalldirs $(installroot)$(mandir) $(INSTALL) -m 644 wordview.1 $(installroot)$(mandir)/man1/wordview.1 distclean: clean - rm Makefile + $(RM) Makefile catdoc.1 xls2csv.1 catppt.1 wordview.1 + -- 2.39.5