]> Sergey Matveev's repositories - public-inbox.git/blobdiff - Documentation/include.mk
avoid spaces after shell redirection operators
[public-inbox.git] / Documentation / include.mk
index 4669ac54db8aaaeb2a39dcb6145bc79173e20a06..bd9df8c05900a9fd743d73162dd7dca0dbcc55b2 100644 (file)
@@ -4,9 +4,10 @@ all::
 
 RSYNC = rsync
 RSYNC_DEST = public-inbox.org:/srv/public-inbox/
-docs := README COPYING INSTALL TODO $(shell git ls-files 'Documentation/*.txt')
+docs := README COPYING INSTALL TODO HACKING
+docs += $(shell git ls-files 'Documentation/*.txt')
 INSTALL = install
-POD2MAN = pod2man
+POD2MAN ?= pod2man
 POD2MAN_OPTS = -v --stderr -d 1994-10-02 -c 'public-inbox user manual'
 pod2man = $(POD2MAN) $(POD2MAN_OPTS)
 POD2TEXT = pod2text
@@ -51,7 +52,7 @@ all :: $(mantxt)
 Documentation/%.txt : Documentation/%.pod
        $(pod2text) $< $@+ && mv $@+ $@
 
-txt2pre = ./Documentation/txt2pre < $< > $@+ && touch -r $< $@+ && mv $@+ $@
+txt2pre = ./Documentation/txt2pre <$< >$@+ && touch -r $< $@+ && mv $@+ $@
 txt := INSTALL README COPYING TODO
 dtxt := design_notes.txt design_www.txt dc-dlvr-spam-flow.txt
 dtxt := $(addprefix Documentation/, $(dtxt)) $(mantxt)
@@ -66,7 +67,7 @@ html: $(docs_html)
 gz_docs := $(addsuffix .gz, $(docs) $(docs_html))
 rsync_docs := $(gz_docs) $(docs) $(txt) $(docs_html)
 %.gz: %
-       gzip -9 --rsyncable < $< > $@+
+       gzip -9 --rsyncable <$< >$@+
        touch -r $< $@+
        mv $@+ $@