File: Makefile

package info (click to toggle)
gap-autodoc 2019.09.04-1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 1,324 kB
  • sloc: xml: 1,839; makefile: 122; sh: 9
file content (31 lines) | stat: -rw-r--r-- 1,249 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
SHELL=/bin/bash
pkgdocdir=/usr/share/gap/pkg/AutoDoc/doc
DOCDIR=$(DESTDIR)$(pkgdocdir)
MANUAL=main
DIRS=.
clean::
	bash clean && rm -f *.gz mathjax
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/AutoDoc.toc; \
	  install -o root -g root -m 0644 $$man/bib.xml $(DOCDIR)/$$man; \
	  install -o root -g root -m 0644 $$man/bib.xml.bib $(DOCDIR)/$$man; \
	  install -o root -g root -m 0644 $$man/AutoDoc.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/*.txt $(DOCDIR)/$$man; \
	done
install-html:
	test -d $(DOCDIR)/$(DIRS) || install -d $(DOCDIR)/$(DIRS)
	set -e; for man in $(DIRS); do \
	  install -o root -g root -m 0644 $$man/*.{html,css,js} $(DOCDIR)/$$man;\
	  ln -s `readlink mathjax` $(DOCDIR)/$$man/mathjax;\
	done