From cfc6d4fe01f55e563637687b2b0fbc3483a25186 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 20 Feb 2014 23:15:54 +0100 Subject: add rules to install pdf, ps and dvi manuals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e1b38bc..938f8da 100644 --- a/Makefile +++ b/Makefile @@ -114,7 +114,7 @@ obj/blueshift_randr.c: src/blueshift_randr.pyx install: install-base install-info install-examples .PHONY: install -install: install-base install-doc +install-all: install-base install-doc .PHONY: install-base install-base: install-command install-license @@ -134,7 +134,7 @@ install-license: install -m644 COPYING LICENSE -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" .PHONY: install-doc -install-doc: install-info install-examples +install-doc: install-info install-pdf install-ps install-dvi install-examples .PHONY: install-examples install-examples: $(foreach E,$(EXAMPLES),examples/$(E)) @@ -146,6 +146,21 @@ install-info: blueshift.info install -dm755 -- "$(DESTDIR)$(INFODIR)" install -m644 $< -- "$(DESTDIR)$(INFODIR)/$(PKGNAME).info" +.PHONY: install-pdf +install-pdf: blueshift.pdf + install -dm755 -- "$(DESTDIR)$(DOCDIR)" + install -m644 $< -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME).pdf" + +.PHONY: install-ps +install-ps: blueshift.ps + install -dm755 -- "$(DESTDIR)$(DOCDIR)" + install -m644 $< -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME).ps" + +.PHONY: install-dvi +install-dvi: blueshift.dvi + install -dm755 -- "$(DESTDIR)$(DOCDIR)" + install -m644 $< -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME).dvi" + .PHONY: uninstall uninstall: @@ -159,6 +174,9 @@ uninstall: -rm -- $(foreach E,$(EXAMPLES),"$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples/$(E)") -rmdir -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/examples" -rm -- "$(DESTDIR)$(INFODIR)/$(PKGNAME).info" + -rm -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME).pdf" + -rm -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME).ps" + -rm -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME).dvi" .PHONY: all -- cgit v1.2.3-70-g09d2