Index: gap-radiroot-2.7/doc/Makefile =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ gap-radiroot-2.7/doc/Makefile 2016-04-22 19:56:10.042207691 +0200 @@ -0,0 +1,33 @@ +SHELL=/bin/bash +pkgdocdir=/usr/share/gap/pkg/RadiRoot/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.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