summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-10-17 18:52:43 +0000
committerJudd Vinet <judd@archlinux.org>2005-10-17 18:52:43 +0000
commita1526a3e7dda31e236985ab465a5befa298eef26 (patch)
tree4087d7f60d49651ab9c4a2fa876be11935ac1bbd /doc
parent8f191f3b332823906608453aac788b6ebc870e91 (diff)
added first part of the autoconf stuff - patch from Christian Hamar <krics@linuxforum.hu>
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am26
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644
index 00000000..5e9e159f
--- /dev/null
+++ b/doc/Makefile.am
@@ -0,0 +1,26 @@
+all: makepkg.8 pacman.8
+
+if HAS_MAN2HTML
+makepkg.8:
+ sed -e 's,#PACMAN_VERSION#,$(PACMAN_VERSION),g' < makepkg.8.in > makepkg.8
+ man2html makepkg.8 > html/makepkg.8.html
+else
+makepkg.8:
+ sed -e 's,#PACMAN_VERSION#,$(PACMAN_VERSION),g' < makepkg.8.in > makepkg.8
+endif
+
+if HAS_MAN2HTML
+pacman.8:
+ sed -e 's,#PACMAN_VERSION#,$(PACMAN_VERSION),g' < pacman.8.in > pacman.8
+ man2html pacman.8 > html/pacman.8.html
+else
+pacman.8:
+ sed -e 's,#PACMAN_VERSION#,$(PACMAN_VERSION),g' < pacman.8.in > pacman.8
+endif
+
+clean:
+ rm -rf *.8
+ rm -rf html/*
+
+man_MANS: pacman.8 makepkg.8
+EXTRA_DIST = $(man_MANS)