[tor-commits] [flashproxy/master] Changed make recipe to use minimal prereqs.

dcf at torproject.org dcf at torproject.org
Tue Nov 13 04:21:40 UTC 2012


commit 7dad65e0bce8693fa35061f27caac95f21f93430
Author: Alexandre Allaire <alexandre.allaire at mail.mcgill.ca>
Date:   Mon Nov 12 20:51:22 2012 -0500

    Changed make recipe to use minimal prereqs.
    
    Changed the %.1 target to have as prerequisite %.1.txt,
    rather than all of the asciidoc files. Otherwise
    man pages would be generated unnecessarily. Also
    changed recipe to use automatic variable $<, to match
    the style found in the make manual.
---
 Makefile |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index b29ab48..4f3a07a 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,6 @@ BINDIR = $(PREFIX)/bin
 VERSION = 0.8
 
 CLIENT_EXECUTABLES = flashproxy-client flashproxy-reg-email flashproxy-reg-http
-CLIENT_ASCIIDOCS = $(CLIENT_EXECUTABLES:%=doc/%.1.txt)
 CLIENT_MANPAGES = $(CLIENT_EXECUTABLES:%=doc/%.1)
 CLIENT_DIST_FILES = $(CLIENT_EXECUTABLES) README LICENSE torrc
 
@@ -42,9 +41,9 @@ sign: dist/$(DISTNAME).zip
 	cd dist && gpg --sign --detach-sign --armor $(DISTNAME).zip
 	cd dist && gpg --verify $(DISTNAME).zip.asc $(DISTNAME).zip
 
-%.1: $(CLIENT_ASCIIDOCS)
+%.1: %.1.txt
 	rm -rf $@
 	a2x --no-xmllint --xsltproc-opts "--stringparam man.th.title.max.length 23" \
-		-d manpage -f manpage $@.txt
+		-d manpage -f manpage $<
 
 .PHONY: all install clean test dist sign





More information about the tor-commits mailing list