summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-22 08:03:59 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-22 08:03:59 +0100
commit4a8d490cc62902672969bd2750bb0c0a66064a4a (patch)
tree46ff7ae64fcddc149f441d22149fa376d8a063a3 /Makefile
parentadd todos (diff)
downloadblueshift-4a8d490cc62902672969bd2750bb0c0a66064a4a.tar.gz
blueshift-4a8d490cc62902672969bd2750bb0c0a66064a4a.tar.bz2
blueshift-4a8d490cc62902672969bd2750bb0c0a66064a4a.tar.xz
m + list examples in info manual
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 12 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index f6aa9de..71860c4 100644
--- a/Makefile
+++ b/Makefile
@@ -124,7 +124,7 @@ obj/%.c: src/%.pyx
# Build rules for Python source files
bin/blueshift: obj/blueshift.zip
- echo '#!/usr/bin/python3' > $@
+ echo '#!$(SHEBANG)' > $@
cat $< >> $@
chmod a+x $@
@@ -144,29 +144,32 @@ obj/%.py: src/%.py
.PHONY: doc
doc: info pdf dvi ps
+obj/%.texinfo: info/%.texinfo
+ @mkdir -p obj
+ cp $< $@
+ sed -i 's:@set DOCDIR /usr/share/doc:@set DOCDIR $(DOCDIR):g' $@
+ sed -i 's:@set PKGNAME blueshift:@set PKGNAME $(PKGNAME):g' $@
+
.PHONY: info
info: blueshift.info
-%.info: info/%.texinfo
- makeinfo "$<"
+%.info: obj/%.texinfo obj/fdl.texinfo
+ makeinfo $<
.PHONY: pdf
pdf: blueshift.pdf
-%.pdf: info/%.texinfo
- @mkdir -p obj
+%.pdf: obj/%.texinfo obj/fdl.texinfo
cd obj ; yes X | texi2pdf ../$<
mv obj/$@ $@
.PHONY: dvi
dvi: blueshift.dvi
-%.dvi: info/%.texinfo
- @mkdir -p obj
+%.dvi: obj/%.texinfo obj/fdl.texinfo
cd obj ; yes X | $(TEXI2DVI) ../$<
mv obj/$@ $@
.PHONY: ps
ps: blueshift.ps
-%.ps: info/%.texinfo
- @mkdir -p obj
+%.ps: obj/%.texinfo obj/fdl.texinfo
cd obj ; yes X | texi2pdf --ps ../$<
mv obj/$@ $@