summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-11-22 23:29:48 +0100
committerDave Reisner <dreisner@archlinux.org>2012-11-24 00:01:34 +0100
commit3c961b3bc3cbffa7537575c8ea85d016a0342f24 (patch)
treefb168bd640663cbc1a21db808ae7f27c17123879 /Makefile
parentf85d28014134076217904885ea339e2f4c438df1 (diff)
downloadmkinitcpio-3c961b3bc3cbffa7537575c8ea85d016a0342f24.tar.gz
mkinitcpio-3c961b3bc3cbffa7537575c8ea85d016a0342f24.tar.xz
build: move manpages to subdir
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 88f82db..756d42f 100644
--- a/Makefile
+++ b/Makefile
@@ -16,9 +16,9 @@ DIRS = \
all: doc
MANPAGES = \
- mkinitcpio.8 \
- mkinitcpio.conf.5 \
- lsinitcpio.1
+ man/mkinitcpio.8 \
+ man/mkinitcpio.conf.5 \
+ man/lsinitcpio.1
install: all
mkdir -p $(DESTDIR)
@@ -47,14 +47,14 @@ install: all
cp -at $(DESTDIR)/usr/lib/initcpio/install install/*
cp -at $(DESTDIR)/etc/mkinitcpio.d mkinitcpio.d/*
- install -m644 mkinitcpio.8 $(DESTDIR)/usr/share/man/man8/mkinitcpio.8
- install -m644 mkinitcpio.conf.5 $(DESTDIR)/usr/share/man/man5/mkinitcpio.conf.5
- install -m644 lsinitcpio.1 $(DESTDIR)/usr/share/man/man1/lsinitcpio.1
+ install -m644 man/mkinitcpio.8 $(DESTDIR)/usr/share/man/man8/mkinitcpio.8
+ install -m644 man/mkinitcpio.conf.5 $(DESTDIR)/usr/share/man/man5/mkinitcpio.conf.5
+ install -m644 man/lsinitcpio.1 $(DESTDIR)/usr/share/man/man1/lsinitcpio.1
install -m644 bash-completion $(DESTDIR)/usr/share/bash-completion/completions/mkinitcpio
ln -s mkinitcpio $(DESTDIR)/usr/share/bash-completion/completions/lsinitcpio
doc: $(MANPAGES)
-%: %.txt Makefile
+man/%: man/%.txt Makefile
a2x -d manpage \
-f manpage \
-a manversion=$(VERSION) \