diff options
Diffstat (limited to 'shipper/Makefile')
-rw-r--r-- | shipper/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/shipper/Makefile b/shipper/Makefile new file mode 100644 index 00000000..1e6f6896 --- /dev/null +++ b/shipper/Makefile @@ -0,0 +1,38 @@ +# Makefile for the shipper project + +VERS=$(shell sed <shipper.spec -n -e '/Version: \(.*\)/s//\1/p') + +MANDIR=$(DESTDIR)/usr/share/man/man1 +BINDIR=$(DESTDIR)/usr/bin + +DOCS = README COPYING shipper.xml rpm2lsm.xml shipper.1 rpm2lsm.1 +SOURCES = shipper buildrpms rpm2lsm Makefile $(DOCS) shipper.spec + +all: shipper-$(VERS).tar.gz + +install: shipper.1 rpm2lsm.1 + cp shipper buildrpms rpm2lsm $(BINDIR) + gzip <shipper.1 >$(MANDIR)/shipper.1.gz + gzip <rpm2lsm.1 >$(MANDIR)/rpm2lsm.1.gz + +shipper.1: shipper.xml + xmlto man shipper.xml +shipper.html: shipper.xml + xmlto html-nochunks shipper.xml + +rpm2lsm.1: rpm2lsm.xml + xmlto man rpm2lsm.xml +rpm2lsm.html: rpm2lsm.xml + xmlto html-nochunks rpm2lsm.xml + +shipper-$(VERS).tar.gz: $(SOURCES) + @mkdir shipper-$(VERS) + @cp $(SOURCES) shipper-$(VERS) + @tar -czf shipper-$(VERS).tar.gz shipper-$(VERS) + @rm -fr shipper-$(VERS) + +dist: shipper-$(VERS).tar.gz + +release: shipper-$(VERS).tar.gz shipper.html rpm2lsm.html + shipper -f; rm CHANGES ANNOUNCE* *.html *.lsm *.1 + |