diff options
| author | Thomas G. Lockhart <lockhart@fourpalms.org> | 1998-05-09 22:32:03 +0000 |
|---|---|---|
| committer | Thomas G. Lockhart <lockhart@fourpalms.org> | 1998-05-09 22:32:03 +0000 |
| commit | 3be86c98c6ed761b3b20abd3994c1bb47bd2fd71 (patch) | |
| tree | 01d235f2e3b6918c40cf56d99e449db1da51f647 /doc/src | |
| parent | 25745b6d52d3ac95ba549184c795c34a71ca3332 (diff) | |
Allow building a source tarball.
Try to generalize the gzip/tar usage for more portability.
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/Makefile | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/doc/src/Makefile b/doc/src/Makefile index 21d5141d3b0..05cc60a125d 100644 --- a/doc/src/Makefile +++ b/doc/src/Makefile @@ -5,6 +5,7 @@ PGDOCS= .. SRCDIR= ../../src TAR= tar +ZIP= gzip TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' # Pick up Makefile.global from the source area @@ -34,37 +35,40 @@ distclean:: all:: $(TARGETS) sources:: - ($(TAR) zcf sources.tar.gz sgml graphics) + $(MAKE) sources.tar.gz -admin.tar.gz: +sources.tar: + ($(TAR) -cf $@ sgml graphics) + +admin.tar: $(MAKE) -C sgml clean $(MAKE) -C sgml admin.html - ($(TAR) zcf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics layout.gif) + ($(TAR) -cf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics layout.gif) -postgres.tar.gz: +postgres.tar: $(MAKE) -C sgml clean $(MAKE) -C sgml postgres.html - ($(TAR) zcf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics catalogs.gif connections.gif layout.gif) + ($(TAR) -cf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics catalogs.gif connections.gif layout.gif) -programmer.tar.gz: +programmer.tar: $(MAKE) -C sgml clean $(MAKE) -C sgml programmer.html - ($(TAR) zcf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics catalogs.gif connections.gif) + ($(TAR) -cf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics catalogs.gif connections.gif) -tutorial.tar.gz: +tutorial.tar: $(MAKE) -C sgml clean $(MAKE) -C sgml tutorial.html - ($(TAR) zcf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics clientserver.gif) + ($(TAR) -cf $@ $(TAREXCLUDE) -C sgml . -C .. -C graphics clientserver.gif) -user.tar.gz: +user.tar: $(MAKE) -C sgml clean $(MAKE) -C sgml user.html - ($(TAR) zcf $@ $(TAREXCLUDE) -C sgml .) + ($(TAR) -cf $@ $(TAREXCLUDE) -C sgml .) # Generic production rules # Compressed file %.gz: % - (gzip -f $<) + ($(ZIP) -f $<) |
