diff options
-rw-r--r-- | manual/000.mdwn | 3 | ||||
-rw-r--r-- | manual/Makefile | 14 |
2 files changed, 11 insertions, 6 deletions
diff --git a/manual/000.mdwn b/manual/000.mdwn deleted file mode 100644 index baf0f8a6..00000000 --- a/manual/000.mdwn +++ /dev/null @@ -1,3 +0,0 @@ -% Backups with Obnam -% Lars Wirzenius - diff --git a/manual/Makefile b/manual/Makefile index d635ebeb..bea7949e 100644 --- a/manual/Makefile +++ b/manual/Makefile @@ -1,20 +1,28 @@ +TITLE = Backups with Obnam +AUTHOR = Lars Wirzenius (liw@liw.fi) +VERSION = Version $(shell git describe) + sources = $(wildcard *.mdwn) outputs = manual.pdf manual.html all: $(outputs) -manual.pdf: Makefile $(sources) +manual.pdf: Makefile 000.mdwn $(sources) pandoc --smart --toc --chapters --number-sections \ -o manual.pdf $(sources) -manual.html: Makefile $(sources) +manual.html: Makefile 000.mdwn $(sources) pandoc -H manual.css --smart --toc --chapters --number-sections \ --standalone \ --self-contained \ -o manual.html $(sources) +000.mdwn: + (echo "% $(TITLE)"; echo "% $(AUTHOR)"; echo "% $(VERSION)") \ + > 000.mdwn + clean: - rm -f $(outputs) + rm -f $(outputs) 000.mdwn publish: $(outputs) rsync $(outputs) code.liw.fi:code.liw.fi/obnam/manual/. |