## doc/Makefile.in

## -- User-modifiable variables -- ##
srcdir		= .
top_srcdir	= ..
subdir		= doc

## == The code below shouldn't need to be touched at all == ##

include ../Rules.mk

## -- Private variables -- ##
MANS		= ccze.1 ccze-plugin.7 ccze-cssdump.1
DISTCLEANFILES	= ${MANS}
EXTRA_DIST	= ccze.1.in ccze-plugin.7.in ccze-cssdump.1.in

## -- Generic rules -- ##
all: ${MANS}

%: %.in ${top_srcdir}/ChangeLog
	sed -e "s,@VERSION\@,${VERSION},g" \
	    -e "s,@sysconfdir\@,${sysconfdir},g" \
	    -e "s,@pkglibdir\@,${pkglibdir},g" \
	<${srcdir}/$@.in >$@T && mv -f $@T $@

install: ${MANS}
	${INSTALL} -d ${DESTDIR}${man1dir}
	${INSTALL_DATA} ccze.1 ccze-cssdump.1 ${DESTDIR}${man1dir}/
	${INSTALL} -d ${DESTDIR}${man7dir}
	${INSTALL_DATA} ccze-plugin.7 ${DESTDIR}${man7dir}/

uninstall:
	rm -f ${DESTDIR}${man1dir}/ccze.1 ${DESTDIR}${man7dir}/ccze-plugin.7 \
	      ${DESTDIR}${man1dir}/ccze-cssdump.1
