forked from ungleich-public/cdist
finish install-man target
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
73ebe77022
commit
d963f931e7
1 changed files with 19 additions and 7 deletions
26
Makefile
26
Makefile
|
@ -1,6 +1,7 @@
|
||||||
# General
|
# General
|
||||||
PREFIX=/usr
|
PREFIX=/usr
|
||||||
BINDIR=$(PREFIX}/bin
|
BINDIR=$(PREFIX)/bin
|
||||||
|
MANDIR=$(PREFIX)/share/man
|
||||||
A2X=a2x -f manpage --no-xmllint
|
A2X=a2x -f manpage --no-xmllint
|
||||||
|
|
||||||
# Developer only
|
# Developer only
|
||||||
|
@ -18,11 +19,11 @@ MANSRC=doc/man/cdist-config-layout.text \
|
||||||
doc/man/cdist.text \
|
doc/man/cdist.text \
|
||||||
doc/man/cdist-type.text
|
doc/man/cdist-type.text
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# User targets
|
||||||
|
#
|
||||||
|
|
||||||
# FIXME: some distro nerd, can you make this more beautiful?
|
all: man
|
||||||
# I'm just a hacker, I don't really care...
|
|
||||||
install:
|
|
||||||
cp bin/* $(BINDIR)
|
|
||||||
|
|
||||||
man: doc/man/.marker
|
man: doc/man/.marker
|
||||||
|
|
||||||
|
@ -33,6 +34,19 @@ doc/man/.marker: $(MANSRC)
|
||||||
clean:
|
clean:
|
||||||
rm -f doc/man/*.html doc/man/*.[1-9]
|
rm -f doc/man/*.html doc/man/*.[1-9]
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Install targets
|
||||||
|
#
|
||||||
|
|
||||||
|
# FIXME: some distro nerd, can you make this more beautiful?
|
||||||
|
# Like integrating install, ...
|
||||||
|
# I'm just a hacker, I don't really care...
|
||||||
|
install:
|
||||||
|
cp bin/* $(BINDIR)
|
||||||
|
|
||||||
|
install-man:
|
||||||
|
for p in doc/man/*.[1-9]; do n=$${p##*.}; cp $$p $(MANDIR)/man$$n/; done
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Developer targets
|
# Developer targets
|
||||||
#
|
#
|
||||||
|
@ -52,5 +66,3 @@ web:
|
||||||
|
|
||||||
pub:
|
pub:
|
||||||
git push --mirror
|
git push --mirror
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue