Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initial add of sgml manual from offlineimap example

  • Loading branch information...
commit 59f52fe3764c765824dfd2a1a20e3d232a858a0f 1 parent 4d1bfa5
@jgoerzen authored
Showing with 31 additions and 5 deletions.
  1. +31 −5 Makefile
View
36 Makefile
@@ -5,8 +5,6 @@ all: setup # GHC build
./setup configure
./setup build
-doc: lib/dfs.html/index.html lib/dfs.pdf lib/dfs.ps lib/dfs.txt
-
hugsbuild: setup
./setup configure --hugs
./setup build
@@ -14,6 +12,36 @@ hugsbuild: setup
setup: Setup.lhs datapacker.cabal
ghc -package Cabal Setup.lhs -o setup
+doc: man html pdf txt
+
+.PHONY: man
+man: datapacker.1
+
+.PHONY: html
+html: datapacker.html
+
+.PHONY: pdf
+pdf: datapacker.pdf
+
+.PHONY: txt
+txt: datapacker.txt
+
+datapacker.html: datapacker.sgml
+ docbook2html -u datapacker.sgml
+
+datapacker.ps: datapacker.1
+ man -t -l datapacker.1 > datapacker.ps
+
+datapacker.pdf: datapacker.ps
+ ps2pdf14 datapacker.ps
+
+datapacker.txt: datapacker.1
+ groff -Tascii -man datapacker.1 | sed $$'s/.\b//g' > datapacker.txt
+
+datapacker.1: datapacker.sgml
+ docbook2man datapacker.sgml
+ docbook2man datapacker.sgml
+
clean: clean-code clean-doc
clean-code:
@@ -24,6 +52,4 @@ clean-code:
-rm -f `find . -name "*.cm*"`
clean-doc:
- -cd doc && scons -c && scons -c html pdf text ps
- -rm -rf doc/.sconsign* .depend test
- -rm -f doc/manpage* doc/*.1
+ -rm -f *.1 *.ps *.pdf *.txt *.links *.refs *.html
Please sign in to comment.
Something went wrong with that request. Please try again.