From: Ulrich Mueller <ulm@gentoo.org>
To: gentoo-pms@lists.gentoo.org
Subject: [gentoo-pms] [PATCH] Makefile: new "dist" target.
Date: Fri, 9 Aug 2013 21:25:17 +0200 [thread overview]
Message-ID: <20997.16925.752266.787734@a1i15.kph.uni-mainz.de> (raw)
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
reply other threads:[~2013-08-09 19:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20997.16925.752266.787734@a1i15.kph.uni-mainz.de \
--to=ulm@gentoo.org \
--cc=gentoo-pms@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox