Package: gap-autodoc / 2019.09.04-1

doc-makefile Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Index: gap-autodoc-2018.09.20/doc/Makefile
===================================================================
--- /dev/null
+++ gap-autodoc-2018.09.20/doc/Makefile
@@ -0,0 +1,31 @@
+SHELL=/bin/bash
+pkgdocdir=/usr/share/gap/pkg/AutoDoc/doc
+DOCDIR=$(DESTDIR)$(pkgdocdir)
+MANUAL=main
+DIRS=.
+clean::
+	bash clean && rm -f *.gz mathjax
+install: install-pdf install-help install-html
+install-pdf:
+	test -d $(DOCDIR)/$(DIRS) || install -d $(DOCDIR)/$(DIRS)
+	set -e; for man in $(DIRS); do \
+	  install -o root -g root -m 0644 $$man/manual.pdf $(DOCDIR)/$$man;\
+	done
+install-help:
+	test -d $(DOCDIR)/$(DIRS) || install -d $(DOCDIR)/$(DIRS)
+	set -e; for man in $(DIRS); do \
+	  gzip --best --no-name $$man/manual.six; \
+	  gzip --best --no-name $$man/AutoDoc.toc; \
+	  install -o root -g root -m 0644 $$man/bib.xml $(DOCDIR)/$$man; \
+	  install -o root -g root -m 0644 $$man/bib.xml.bib $(DOCDIR)/$$man; \
+	  install -o root -g root -m 0644 $$man/AutoDoc.toc.gz $(DOCDIR)/$$man; \
+	  install -o root -g root -m 0644 $$man/manual.six.gz $(DOCDIR)/$$man; \
+	  install -o root -g root -m 0644 $$man/manual.lab $(DOCDIR)/$$man; \
+	  install -o root -g root -m 0644 $$man/*.txt $(DOCDIR)/$$man; \
+	done
+install-html:
+	test -d $(DOCDIR)/$(DIRS) || install -d $(DOCDIR)/$(DIRS)
+	set -e; for man in $(DIRS); do \
+	  install -o root -g root -m 0644 $$man/*.{html,css,js} $(DOCDIR)/$$man;\
+	  ln -s `readlink mathjax` $(DOCDIR)/$$man/mathjax;\
+	done