Makefile 681 B

123456789101112131415161718192021222324252627
  1. all: pisg-doc.txt pisg-doc.html pisg.1
  2. VERSION := $(shell grep "version =>" ../modules/Pisg.pm | sed 's/[^"]*"\([^"]*\)+CVS".*/\1/')
  3. pisg-doc.xml: .version
  4. .version: ../modules/Pisg.pm
  5. perl -i -pe 's/(<title>pisg ).*(documentation<\/title>)/$${1}$(VERSION) $${2}/' pisg-doc.xml
  6. touch .version
  7. pisg-doc.txt: pisg-doc.xml
  8. docbook2txt pisg-doc.xml
  9. mv pisg-doc.txt pisg-tmp.txt
  10. cat pisg-tmp.txt | ./modifytxt.pl > pisg-doc.txt
  11. rm -f pisg-tmp.txt
  12. pisg-doc.html: pisg-doc.xml
  13. docbook2html pisg-doc.xml -V "%use-id-as-filename%" -V nochunks
  14. pisg.1: pisg.sgml
  15. docbook-to-man $< > $@
  16. clean:
  17. rm -f pisg-doc.txt pisg-doc.html pisg.1 .version
  18. .PHONY: clean
  19. # vim:noexpandtab: