summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-19 18:11:04 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-19 18:11:04 +0100
commit9a7ecadd291459b43ebced490d20590d81cf3cf7 (patch)
tree64065361a0f31eba611b80ecf5dbe7de4b4284f8 /Makefile
parentmisc + partial info chapter: invoking (diff)
downloadblueshift-9a7ecadd291459b43ebced490d20590d81cf3cf7.tar.gz
blueshift-9a7ecadd291459b43ebced490d20590d81cf3cf7.tar.bz2
blueshift-9a7ecadd291459b43ebced490d20590d81cf3cf7.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile27
1 files changed, 26 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1684706..b2cb455 100644
--- a/Makefile
+++ b/Makefile
@@ -39,11 +39,20 @@ default: command info
all: command doc
.PHONY: doc
-doc: info
+doc: info pdf dvi ps
.PHONY: info
info: blueshift.info
+.PHONY: pdf
+pdf: blueshift.pdf
+
+.PHONY: dvi
+dvi: blueshift.dvi
+
+.PHONY: ps
+ps: blueshift.ps
+
.PHONY: command
command: bin/blueshift_randr.so bin/blueshift
@@ -84,6 +93,22 @@ obj/blueshift_randr.c: src/blueshift_randr.pyx
%.info: info/%.texinfo
makeinfo "$<"
+%.pdf: info/%.texinfo
+ @mkdir -p obj
+ cd obj ; yes X | texi2pdf ../$<
+ mv obj/$@ $@
+
+%.dvi: info/%.texinfo
+ @mkdir -p obj
+ cd obj ; yes X | $(TEXI2DVI) ../$<
+ mv obj/$@ $@
+
+%.ps: info/%.texinfo
+ @mkdir -p obj
+ cd obj ; yes X | texi2pdf --ps ../$<
+ mv obj/$@ $@
+
+
.PHONY: install
install: install-base install-info install-examples