File: Makefile

package info (click to toggle)
gap-browse 1.8.21%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,296 kB
  • sloc: xml: 1,961; ansic: 1,342; makefile: 163; javascript: 155; sh: 20
file content (44 lines) | stat: -rw-r--r-- 1,631 bytes parent folder | 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
37
38
39
40
41
42
43
44
SHELL=/bin/bash
pkgdocdir=/usr/share/gap/pkg/Browse/doc
DOCDIR=$(DESTDIR)$(pkgdocdir)
MANUAL=manual
MAIN=main
BROWSE=browse
DIRS=.
doc:
	cd ..; echo 'Read("makedocrel.g");' | gap -q -l 'debian/gaproot;/usr/share/gap'
clean:
	rm -f $(DIRS)/*.{html,txt,css,js}
	rm -f $(DIRS)/make_manuals.out $(DIRS)/mathjax
	rm -f $(DIRS)/{$(MANUAL),$(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 $(BROWSE)bib.xml.bib
	rm -f $(MAIN)bib.xml
	rm -f {rubik,solitair}.png
	# also generated by the build
	rm -f ../tst/test.tst
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 -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/$(MAIN).toc; \
	  install -m 0644 $$man/$(BROWSE)bib.xml $(DOCDIR)/$$man; \
	  install -m 0644 $$man/$(BROWSE)bib.xml.bib $(DOCDIR)/$$man; \
	  install -m 0644 $$man/$(MAIN).toc.gz $(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)/$(DIRS) || install -d $(DOCDIR)/$(DIRS)
	set -e; for man in $(DIRS); 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