|
@@ -1,5 +1,12 @@
|
|
|
all: pisg-doc.txt pisg-doc.html pisg.1
|
|
all: pisg-doc.txt pisg-doc.html pisg.1
|
|
|
|
|
|
|
|
|
|
+VERSION = $(shell grep "version =>" ../modules/Pisg.pm | sed 's/.*\"\(.*\)\".*/\1/')
|
|
|
|
|
+
|
|
|
|
|
+pisg-doc.xml: .version
|
|
|
|
|
+.version: ../modules/Pisg.pm
|
|
|
|
|
+ perl -i -pe 's/(<title>pisg ).*(documentation<\/title>)/$${1}$(VERSION) $${2}/' pisg-doc.xml
|
|
|
|
|
+ touch .version
|
|
|
|
|
+
|
|
|
pisg-doc.txt: pisg-doc.xml
|
|
pisg-doc.txt: pisg-doc.xml
|
|
|
docbook2txt pisg-doc.xml
|
|
docbook2txt pisg-doc.xml
|
|
|
mv pisg-doc.txt pisg-tmp.txt
|
|
mv pisg-doc.txt pisg-tmp.txt
|
|
@@ -13,4 +20,8 @@ pisg.1: pisg.sgml
|
|
|
docbook-to-man $< > $@
|
|
docbook-to-man $< > $@
|
|
|
|
|
|
|
|
clean:
|
|
clean:
|
|
|
- rm -f pisg-doc.txt pisg-doc.html pisg.1
|
|
|
|
|
|
|
+ rm -f pisg-doc.txt pisg-doc.html pisg.1 .version
|
|
|
|
|
+
|
|
|
|
|
+.PHONY: clean
|
|
|
|
|
+
|
|
|
|
|
+# vim:noexpandtab:
|