forked from ungleich-public/cdist
put manpages into man1, man7, etc., suitable for uusing with MANPATH
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
b36f644b90
commit
b08d50db79
1 changed files with 23 additions and 12 deletions
35
Makefile
35
Makefile
|
@ -8,29 +8,40 @@ A2X=a2x -f manpage --no-xmllint
|
||||||
WEBDIR=$$HOME/niconetz
|
WEBDIR=$$HOME/niconetz
|
||||||
WEBPAGE=software/cdist.mdwn
|
WEBPAGE=software/cdist.mdwn
|
||||||
|
|
||||||
MANSRC=doc/man/cdist-config-layout.text \
|
MANDIR=doc/man
|
||||||
doc/man/cdist-config.text \
|
MANSRC=$(MANDIR)/cdist-config-layout.text \
|
||||||
doc/man/cdist-explorer.text \
|
$(MANDIR)/cdist-config.text \
|
||||||
doc/man/cdist-quickstart.text \
|
$(MANDIR)/cdist-explorer.text \
|
||||||
doc/man/cdist-stages.text \
|
$(MANDIR)/cdist-quickstart.text \
|
||||||
doc/man/cdist-terms.text \
|
$(MANDIR)/cdist-stages.text \
|
||||||
doc/man/cdist-type.text
|
$(MANDIR)/cdist-terms.text \
|
||||||
|
$(MANDIR)/cdist-type.text
|
||||||
|
|
||||||
MANSRC=doc/man/cdist.text \
|
MANSRC=$(MANDIR)/cdist.text \
|
||||||
doc/man/cdist-deploy-to.text \
|
$(MANDIR)/cdist-deploy-to.text \
|
||||||
doc/man/cdist-manifest.text \
|
$(MANDIR)/cdist-manifest.text \
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# User targets
|
# User targets
|
||||||
#
|
#
|
||||||
|
|
||||||
all: man
|
all:
|
||||||
|
@echo ''
|
||||||
|
@echo 'Welcome to cdist!'
|
||||||
|
@echo ''
|
||||||
|
@echo 'Here are the possible targets:'
|
||||||
|
@echo ''
|
||||||
|
@echo ' man: Build manpages'
|
||||||
|
@echo ' clean: Remove build stuff'
|
||||||
|
@echo ''
|
||||||
|
@echo ''
|
||||||
|
|
||||||
man: doc/man/.marker
|
man: doc/man/.marker
|
||||||
|
|
||||||
doc/man/.marker: $(MANSRC)
|
doc/man/.marker: $(MANSRC)
|
||||||
for man in $(MANSRC); do $(A2X) $$man; done
|
for mansrc in $(MANSRC); do $(A2X) $$mansrc; done
|
||||||
|
for manpage in $(MANDIR)/*.[1-9]; do cat=$${manpage##*.}; echo $$cat; mandir=$(MANDIR)/man$$cat; mkdir -p $$mandir; mv $$manpage $$mandir; done
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in a new issue