# 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\
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)
+
+
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)
../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
+