| 1 | pkgdocdir=/usr/share/doc/gap-doc |
| 2 | INSTALL_SCRIPT = install -m 0755 |
| 3 | INSTALL_DATA = install -m 0644 |
| 4 | INSTALL_DIR = install -m 0755 -d |
| 5 | |
| 6 | all: gap-policy.html/index.html gap-policy.txt |
| 7 | gap-policy.html/index.html: gap-policy.sgml |
| 8 | debiandoc2html $< |
| 9 | |
| 10 | gap-policy-one-file.html: gap-policy.sgml |
| 11 | debiandoc2html -1 -b gap-policy-1-file $< |
| 12 | mv gap-policy-1-file.html/index.html gap-policy-one-file.html |
| 13 | rmdir gap-policy-1-file.html |
| 14 | |
| 15 | gap-policy-one-file: gap-policy-one-file.html |
| 16 | |
| 17 | gap.1: gap2man |
| 18 | sh gap2man > gap.1.new && mv gap.1.new gap.1 |
| 19 | |
| 20 | %.info: %.sgml |
| 21 | debiandoc2info $< |
| 22 | |
| 23 | %.txt: %.sgml |
| 24 | debiandoc2text -O $< > $@ |
| 25 | |
| 26 | %.gz: % |
| 27 | gzip --best --no-name --force --stdout $< > $@ |
| 28 | |
| 29 | clean: |
| 30 | rm -f gap-policy.txt.gz gap.1 |
| 31 | |
| 32 | maintainer-clean: |
| 33 | rm -rf gap-policy.html gap-policy.txt |
| 34 | |
| 35 | install: gap-policy.txt.gz gap-policy.html/index.html |
| 36 | $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir)/gap-policy.html |
| 37 | $(INSTALL_DATA) gap-policy.html/* $(DESTDIR)$(pkgdocdir)/gap-policy.html |
| 38 | $(INSTALL_DATA) gap-policy.txt.gz $(DESTDIR)$(pkgdocdir) |
| 39 | $(INSTALL_DATA) gap-policy.sgml $(DESTDIR)$(pkgdocdir) |
| 40 | |
| 41 | .PHONY: install maintainer-clean gap-policy-one-file |