File: Makefile

package info (click to toggle)
gap-alnuth 3.2.1-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,000 kB
  • sloc: makefile: 117; sh: 13
file content (34 lines) | stat: -rw-r--r-- 1,150 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
SHELL=/bin/bash
pkgdocdir=/usr/share/gap/pkg/Alnuth/doc
DOCDIR=$(DESTDIR)$(pkgdocdir)
MANUAL=manual
DIRS=.
doc:
	./make_doc
clean:
	rm -f tthout tthmacros.tex manual.example*
	rm -f $(DIRS)/$(MANUAL).{aux,bbl,blg,dvi,idx,ilg,ind,log,toc,toc.gz}
	rm -f $(DIRS)/manual.{lab,six,six.gz,pdf}
	rm -fr ../htm
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/$(MANUAL).toc; \
	  install -m 0644 $$man/manual.lab $(DOCDIR)/$$man;\
	  install -m 0644 $$man/manual.six.gz $(DOCDIR)/$$man;\
	  install -m 0644 $$man/$(MANUAL).toc.gz $(DOCDIR)/$$man;\
	  install -m 0644 $$man/*.bib $(DOCDIR)/$$man;\
	  install -m 0644 $$man/*.tex $(DOCDIR)/$$man;\
	done
install-html:
	test -d $(DOCDIR)/../htm || install -d $(DOCDIR)/../htm
	set -e; for man in ../htm; do \
	  install -m 0644 $$man/*.htm $(DOCDIR)/$$man;\
	done