Call autogen.sh instead of configure alone; and make cvs-clean instead
of distclean. This way you can just cvs checkout && dpkg-buildpackage in one go.
This commit is contained in:
parent
edb9b4cad0
commit
b42c9abafd
1 changed files with 7 additions and 2 deletions
9
debian/rules
vendored
9
debian/rules
vendored
|
@ -18,8 +18,10 @@ build-stamp:
|
||||||
patch -Ns -p0 < `pwd`/../debian/po-Makefile.in.in.diff || true ;\
|
patch -Ns -p0 < `pwd`/../debian/po-Makefile.in.in.diff || true ;\
|
||||||
fi ;\
|
fi ;\
|
||||||
)
|
)
|
||||||
env CFLAGS='-O2 -Wall' ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
|
|
||||||
|
env CFLAGS='-O2 -Wall' ./autogen.sh --prefix=/usr --mandir=\$${prefix}/share/man \
|
||||||
--infodir=\$${prefix}/share/info --sysconfdir=/etc --localstatedir=/var
|
--infodir=\$${prefix}/share/info --sysconfdir=/etc --localstatedir=/var
|
||||||
|
|
||||||
$(MAKE)
|
$(MAKE)
|
||||||
|
|
||||||
touch build-stamp
|
touch build-stamp
|
||||||
|
@ -29,7 +31,7 @@ clean:
|
||||||
dh_testroot
|
dh_testroot
|
||||||
rm -f build-stamp
|
rm -f build-stamp
|
||||||
|
|
||||||
-$(MAKE) distclean
|
-$(MAKE) cvs-clean
|
||||||
|
|
||||||
dh_clean
|
dh_clean
|
||||||
|
|
||||||
|
@ -43,6 +45,9 @@ install: build
|
||||||
mkdir -p `pwd`/debian/tmp/etc/tinc/example
|
mkdir -p `pwd`/debian/tmp/etc/tinc/example
|
||||||
cp doc/tinc.conf.sample `pwd`/debian/tmp/etc/tinc/example/tinc.conf
|
cp doc/tinc.conf.sample `pwd`/debian/tmp/etc/tinc/example/tinc.conf
|
||||||
ln -s /usr/share/doc/tinc/README.Debian `pwd`/debian/tmp/etc/tinc/example/README
|
ln -s /usr/share/doc/tinc/README.Debian `pwd`/debian/tmp/etc/tinc/example/README
|
||||||
|
cp debian/tinc-up debian/tmp/etc/tinc/example
|
||||||
|
cp debian/tinc-down debian/tmp/etc/tinc/example
|
||||||
|
chmod 700 debian/tmp/etc/tinc/example/tinc-up debian/tmp/etc/tinc/example/tinc-down
|
||||||
|
|
||||||
|
|
||||||
# Build architecture-independent files here.
|
# Build architecture-independent files here.
|
||||||
|
|
Loading…
Reference in a new issue