2011-02-26 10:46:52 +00:00
|
|
|
# General
|
2010-10-28 19:13:57 +00:00
|
|
|
PREFIX=/usr
|
2011-02-26 18:37:15 +00:00
|
|
|
BINDIR=$(PREFIX)/bin
|
|
|
|
MANDIR=$(PREFIX)/share/man
|
2011-02-26 10:46:52 +00:00
|
|
|
A2X=a2x -f manpage --no-xmllint
|
|
|
|
|
|
|
|
# Developer only
|
2011-02-04 22:15:10 +00:00
|
|
|
WEBDIR=$$HOME/niconetz
|
|
|
|
WEBPAGE=software/cdist.mdwn
|
2010-10-28 19:13:57 +00:00
|
|
|
|
2011-03-05 10:36:02 +00:00
|
|
|
MANDIR=doc/man
|
|
|
|
MANSRC=$(MANDIR)/cdist-config-layout.text \
|
|
|
|
$(MANDIR)/cdist-config.text \
|
|
|
|
$(MANDIR)/cdist-explorer.text \
|
|
|
|
$(MANDIR)/cdist-quickstart.text \
|
|
|
|
$(MANDIR)/cdist-stages.text \
|
|
|
|
$(MANDIR)/cdist-terms.text \
|
|
|
|
$(MANDIR)/cdist-type.text
|
2011-02-19 00:47:10 +00:00
|
|
|
|
2011-03-05 10:36:02 +00:00
|
|
|
MANSRC=$(MANDIR)/cdist.text \
|
|
|
|
$(MANDIR)/cdist-deploy-to.text \
|
|
|
|
$(MANDIR)/cdist-manifest.text \
|
2011-02-26 19:41:33 +00:00
|
|
|
|
|
|
|
|
2011-02-26 18:37:15 +00:00
|
|
|
################################################################################
|
|
|
|
# User targets
|
|
|
|
#
|
2011-02-19 00:47:10 +00:00
|
|
|
|
2011-03-05 10:36:02 +00:00
|
|
|
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 ''
|
2010-10-28 19:13:57 +00:00
|
|
|
|
2011-02-26 10:51:59 +00:00
|
|
|
man: doc/man/.marker
|
|
|
|
|
|
|
|
doc/man/.marker: $(MANSRC)
|
2011-03-05 10:36:02 +00:00
|
|
|
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
|
2011-02-26 10:51:59 +00:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f doc/man/*.html doc/man/*.[1-9]
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Developer targets
|
|
|
|
#
|
|
|
|
|
|
|
|
test:
|
2011-02-03 12:32:29 +00:00
|
|
|
# ubuntu
|
2010-09-25 10:36:30 +00:00
|
|
|
.rsync lyni@tablett:cdist
|
2011-02-03 12:32:29 +00:00
|
|
|
# redhat
|
2010-09-25 10:36:30 +00:00
|
|
|
.rsync nicosc@free.ethz.ch:cdist
|
2011-02-03 12:32:29 +00:00
|
|
|
# gentoo
|
|
|
|
.rsync nicosc@ru3.inf.ethz.ch:cdist
|
2011-02-02 13:01:50 +00:00
|
|
|
|
|
|
|
web:
|
2011-02-04 22:15:10 +00:00
|
|
|
cp REAL_README $(WEBDIR)/$(WEBPAGE)
|
|
|
|
cd $(WEBDIR) && git commit -m "cdist update" $(WEBPAGE)
|
|
|
|
cd $(WEBDIR) && make pub
|
2011-02-02 20:49:49 +00:00
|
|
|
|
|
|
|
pub:
|
|
|
|
git push --mirror
|