Index: gap-autpgrp-1.5/doc/Makefile
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ gap-autpgrp-1.5/doc/Makefile	2014-02-28 21:16:52.312287089 +0100
@@ -0,0 +1,34 @@
+SHELL=/bin/bash
+pkgdocdir=/usr/share/gap/pkg/AutPGrp/doc
+DOCDIR=$(DESTDIR)$(pkgdocdir)
+MANUAL=manual
+DIRS=.
+doc:
+	./make_doc
+clean:
+	rm -f $(DIRS)/*.{html,txt,css,js}
+	rm -f $(DIRS)/make_manuals.out
+	rm -f $(DIRS)/$(MANUAL).{dvi,aux,bbl,blg,brf,idx,ilg,ind,log,out,pnr,toc,toc.gz}
+	rm -f $(DIRS)/manual{,-bw}.{lab,six,six.gz,pdf}
+	rm -f manualbib.xml.bib wsp.g manual.example*
+	rm -fr ../htm
+install: install-pdf install-help install-help install-help
+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 $$man/manual.six; \
+	  gzip --best $$man/$(MANUAL).toc; \
+	  install -o root -g root -m 0644 $$man/manual.six.gz $(DOCDIR)/$$man;\
+	  install -o root -g root -m 0644 $$man/$(MANUAL).toc.gz $(DOCDIR)/$$man;\
+	  install -o root -g root -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 -o root -g root -m 0644 $$man/*.{html,css,js} $(DOCDIR)/$$man;\
+	done
