File: doc-makefile

package info (click to toggle)
gap-crystcat 1.1.9-2
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 664 kB
  • sloc: makefile: 110; sh: 9
file content (41 lines) | stat: -rw-r--r-- 1,467 bytes parent folder | download | duplicates (2)
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
37
38
39
40
41
--- /dev/null
+++ b/doc/Makefile
@@ -0,0 +1,38 @@
+SHELL=/bin/bash
+pkgdocdir=/usr/share/gap/pkg/CrystCat/doc
+DOCDIR=$(DESTDIR)$(pkgdocdir)
+MANUAL=manual
+DIRS=.
+doc:
+	./make_doc
+clean:
+	rm -f $(DIRS)/*.{html,txt,css,js}
+	rm -f $(DIRS)/make_manuals.out $(DIRS)/mathjax
+	rm -f $(DIRS)/$(MANUAL).{aux,blg,brf,idx,ilg,ind,log,out,pnr,toc.gz,dvi,pdf,ps}
+	rm -f $(DIRS)/manual{,-bw}.{lab,six.gz}
+	rm -f manualbib.xml.bib
+	rm -f ../htm/*.htm
+	rm -f manual.example-?.tst
+	rm -f texput.log
+	rm -f tthmacros.tex
+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/$(MANUAL).toc; \
+	  install -o root -g root -m 0644 $$man/$(MANUAL).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/*.tex $(DOCDIR)/$$man; \
+	done
+install-html:
+	test -d $(DOCDIR)/../htm/$(DIRS) || install -d $(DOCDIR)/../htm/$(DIRS)
+	set -e; for man in $(DIRS); do \
+	  install -o root -g root -m 0644 $$man/../htm/*.htm $(DOCDIR)/../htm/$$man;\
+	done