2002-04-11 07:26:14 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2010-09-02 12:40:42 +00:00
|
|
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
|
|
|
#include /usr/share/cdbs/1/rules/simple-patchsys.mk
|
|
|
|
include /usr/share/cdbs/1/class/autotools.mk
|
2002-04-11 07:26:14 +00:00
|
|
|
|
2010-09-02 12:40:42 +00:00
|
|
|
# A bit of a kludge, we have our own init.d handling in postinst, but
|
|
|
|
# cdbs calls dh_installinit anyway.
|
|
|
|
DEB_DH_INSTALLINIT_ARGS = -n
|
2002-04-11 07:26:14 +00:00
|
|
|
|
2010-09-02 12:40:42 +00:00
|
|
|
clean::
|
|
|
|
rm -rf src/device.c doc/tinc
|
|
|
|
build/tinc::
|
|
|
|
cd doc && $(MAKE) texi2html
|
|
|
|
binary-post-install/tinc::
|
2010-02-04 19:03:00 +00:00
|
|
|
# Guess where texi2html installed its output today...
|
|
|
|
[ -f doc/tinc/tinc.html ] \
|
2010-09-02 12:40:42 +00:00
|
|
|
&& mv -v doc/tinc/*.html debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/ \
|
|
|
|
|| mv -v doc/*.html debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/
|
|
|
|
rm -f debian/$(cdbs_curpkg)/usr/share/info/dir*
|
|
|
|
cd debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/ && tar xzf ../../../../../../doc/sample-config.tar.gz && mv sample-config examples && rm -rf examples/CVS examples/hosts/CVS
|