aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-06 14:04:04 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-06 14:04:04 +0100
commit83aa0f5c5f7733f96469ff440b902951d2f57633 (patch)
treed6ffb03d9f42d1bcef342c00b00d297d1092f584 /Makefile
parentremove debug line (diff)
downloadmedian-83aa0f5c5f7733f96469ff440b902951d2f57633.tar.gz
median-83aa0f5c5f7733f96469ff440b902951d2f57633.tar.bz2
median-83aa0f5c5f7733f96469ff440b902951d2f57633.tar.xz
begin info manual
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1486dbb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,47 @@
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved. This file is offered as-is,
+# without any warranty.
+
+
+
+.PHONY: default
+default: info
+
+.PHONY: all
+all: doc
+
+.PHONY: doc
+doc: info pdf dvi ps
+
+.PHONY: info
+info: median.info
+%.info: info/%.texinfo info/fdl.texinfo
+ makeinfo $<
+
+.PHONY: pdf
+pdf: median.pdf
+%.pdf: info/%.texinfo info/fdl.texinfo
+ @mkdir -p obj
+ cd obj ; yes X | texi2pdf ../$<
+ mv obj/$@ $@
+
+.PHONY: dvi
+dvi: median.dvi
+%.dvi: info/%.texinfo info/fdl.texinfo
+ @mkdir -p obj
+ cd obj ; yes X | $(TEXI2DVI) ../$<
+ mv obj/$@ $@
+
+.PHONY: ps
+ps: median.ps
+%.ps: info/%.texinfo info/fdl.texinfo
+ @mkdir -p obj
+ cd obj ; yes X | texi2pdf --ps ../$<
+ mv obj/$@ $@
+
+
+.PHONY: clean
+clean:
+ -rm -r obj bin *.info *.pdf *.dvi *.ps
+