* [gentoo-pms] [PATCH] Makefile: new "dist" target.
@ 2013-08-09 19:25 Ulrich Mueller
0 siblings, 0 replies; only message in thread
From: Ulrich Mueller @ 2013-08-09 19:25 UTC (permalink / raw
To: gentoo-pms
Find a patch below with a small update to the Makefile.
The text of the spec doesn't change.
Ulrich
From 77fa772e1637e78fd24af002b809200ea36c8239 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@gentoo.org>
Date: Fri, 9 Aug 2013 21:18:54 +0200
Subject: [PATCH] Makefile: new "dist" target.
New "dist" target in Makefile for creating a distribution tarball.
Don't remove vc.tex with "clean" because it cannot be recreated
outside of a git working tree. The new "maintainer-clean" target
will remove vc.tex.
---
Makefile | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index f3deb94..f88af7e 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,10 @@ html : pms.html
clean :
rm -f *~ *.pdf *.dvi *.log *.aux *.bbl *.blg *.toc *.lol *.loa *.lox \
- *.lot *.out *.html *.css *.png *.4ct *.4tc *.idv *.lg *.tmp *.xref vc.tex || true
+ *.lot *.out *.html *.css *.png *.4ct *.4tc *.idv *.lg *.tmp *.xref
+
+maintainer-clean: clean
+ rm -f vc.tex
LATEXFILES = $(shell find -name '*.tex') pms.cls
LISTINGFILES = $(shell ls *.listing)
@@ -53,10 +56,17 @@ pms.dvi: $(SOURCEFILES) pms.bbl
latex pms
latex pms
+dist: $(SOURCEFILES) pms.bib vc vc-git.awk vc.tex Makefile
+ @if test -z $(PV); then \
+ echo "Usage: $(MAKE) $@ PV=<version>"; false; \
+ fi
+ tar -cJf pms-$(PV).tar.xz --exclude=.git \
+ --transform='s%^%pms-$(PV)/%' $^
+
upload:
scp pms.pdf eapi-cheatsheet.pdf pms*.html pms.css \
dev.gentoo.org:public_html/pms/head/
.default: all
-.phony: clean upload
+.phony: clean maintainer-clean dist upload
--
1.8.3.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-09 19:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-09 19:25 [gentoo-pms] [PATCH] Makefile: new "dist" target Ulrich Mueller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox