File: doc-makefile

package info (click to toggle)
gap 4.14.0-3
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 109,836 kB
  • sloc: ansic: 97,167; xml: 48,195; cpp: 13,955; sh: 4,438; perl: 1,652; javascript: 255; makefile: 252; ruby: 9
file content (36 lines) | stat: -rw-r--r-- 1,269 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
Index: gap-4.14.0~beta1/doc/Makefile
===================================================================
--- /dev/null
+++ gap-4.14.0~beta1/doc/Makefile
@@ -0,0 +1,31 @@
+SHELL=/bin/bash
+pkgdocdir=/usr/share/gap/doc
+DOCDIR=$(DESTDIR)$(pkgdocdir)
+DIRS={ref,tut,hpc}
+clean:
+	rm -f $(DIRS)/*.{html,txt,css,js}
+	rm -f $(DIRS)/make_manuals.out $(DIRS)/mathjax
+	rm -f $(DIRS)/main.{aux,bbl,blg,brf,idx,ilg,ind,log,out,pnr,tex,toc,toc.gz}
+	rm -f $(DIRS)/manual{,-bw}.{lab,six,six.gz,pdf}
+	rm -f manualbib.xml.bib wsp.g
+install-pdf:
+	install -d $(DOCDIR)/$(DIRS)
+	set -e; for man in $(DIRS); do \
+	  install -m 0644 $$man/manual.pdf $(DOCDIR)/$$man;\
+	done
+install-help:
+	install -d $(DOCDIR)/$(DIRS)
+	set -e; for man in $(DIRS); do \
+	  gzip --best --no-name $$man/manual.six; \
+	  gzip --best --no-name $$man/main.toc; \
+	  install -m 0644 $$man/manual.lab $(DOCDIR)/$$man;\
+	  install -m 0644 $$man/manual.six.gz $(DOCDIR)/$$man;\
+	  install -m 0644 $$man/main.toc.gz $(DOCDIR)/$$man;\
+	  install -m 0644 $$man/*.txt $(DOCDIR)/$$man;\
+	done
+install-html:
+	install -d $(DOCDIR)/$(DIRS)
+	set -e; for man in $(DIRS); do \
+	  install -m 0644 $$man/*.{html,css,js} $(DOCDIR)/$$man;\
+	  ln -s `readlink $$man/mathjax` $(DOCDIR)/$$man/mathjax;\
+	done