File: Makefile

package info (click to toggle)
gap-anupq 3.3.3-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 8,328 kB
  • sloc: ansic: 15,243; xml: 5,186; sh: 1,259; makefile: 281; perl: 260; javascript: 155
file content (46 lines) | stat: -rw-r--r-- 1,629 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
42
43
44
45
46
SHELL=/bin/bash
pkgdocdir=/usr/share/gap/pkg/ANUPQ/doc
DOCDIR=$(DESTDIR)$(pkgdocdir)
MANUAL={manual,guide}
DIRS={.,../standalone-doc}
DOC=.
doc:
	cd ..; echo 'SetPackagePath( ANUPQ, "." ); \
               Read("makedoc.g");' | \
        gap -q -l 'debian/gaproot;/usr/share/gap';
	ronn --roff -o ../ ../debian/anu-pq.ronn
	cd ../standalone-doc; pdflatex guide.tex; pdflatex guide.tex
clean:
	rm -f $(DIRS)/*.{html,txt,css,js}
	rm -f $(DIRS)/make_manuals.out $(DIRS)/mathjax
	rm -f $(DIRS)/$(MANUAL).{aux,bbl,blg,brf,idx,ilg,ind,log,out,pnr,toc,toc.gz,pdf}
	rm -f $(DIRS)/manual{,-bw}.{lab,six,six.gz}
	rm -f manualbib.xml.bib
	rm -f manual.tex
	rm -f ANUPQ.tex
	rm -f ../anu-pq.1
install: install-pdf install-help install-html
install-pdf:
	test -d $(DOCDIR)/$(DOC) || install -d $(DOCDIR)/$(DIRS)
	set -e; for man in $(DIRS); do \
	  for manual in $(MANUAL); do \
	  	[[ -f $$man/$$manual.pdf ]]\
			&& install -m 0644 $$man/$$manual.pdf $(DOCDIR)/$$man;\
	  done \
	done
install-help:
	test -d $(DOCDIR)/$(DOC) || install -d $(DOCDIR)/$(DOC)
	set -e; for man in $(DOC); do \
	  gzip --best --no-name $$man/manual.six; \
	  install -m 0644 $$man/ANUPQ.bib $(DOCDIR)/$$man; \
	  install -m 0644 $$man/manual.six.gz $(DOCDIR)/$$man; \
	  install -m 0644 $$man/manual.lab $(DOCDIR)/$$man; \
	  install -m 0644 $$man/*.txt $(DOCDIR)/$$man; \
	done
install-html:
	test -d $(DOCDIR)/$(DOC) || install -d $(DOCDIR)/$(DOC)
	set -e; for man in $(DOC); do \
	  install -m 0644 $$man/*.{html,css,js} $(DOCDIR)/$$man;\
	  ln -s `readlink mathjax` $(DOCDIR)/$$man/mathjax;\
	done
.PHONY: clean install install-pdf install-help install-html