3
testdir = test -f data/language.dtd -a -f debian/rules
4
testroot = test x`whoami` = xroot
6
# FOR AUTOCONF 2.52 AND NEWER ONLY
7
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
8
CONFFLAGS += --build $(DEB_HOST_GNU_TYPE)
10
CONFFLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
14
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
25
rm -f debian/files debian/substvars
26
rm -f config.log config.status Makefile
27
rm -rf debian/lingoteach-lesson
31
./configure $(CONFFLAGS) --prefix=/usr
42
rm -rf debian/lingoteach-lesson
44
$(MAKE) install DESTDIR=${CURDIR}/debian/lingoteach-lesson
45
-rm -f debian/lingoteach-lesson/usr/share/lingoteach/*
47
install -D -m 0644 ChangeLog debian/lingoteach-lesson/usr/share/doc/lingoteach-lesson/changelog
48
install -D -m 0644 debian/changelog debian/lingoteach-lesson/usr/share/doc/lingoteach-lesson/changelog.Debian
49
install -m 0644 AUTHORS HACKING NEWS debian/copyright debian/lingoteach-lesson/usr/share/doc/lingoteach-lesson
51
find debian/lingoteach-lesson/usr/share/doc \
52
-type f \( -size +8 -o -name 'changelog*' \) ! -path '*/html/*' -print0 | xargs -0 gzip -9n
54
install -d debian/lingoteach-lesson/DEBIAN
55
cd debian/lingoteach-lesson && find usr -type f -print0 | xargs -0 md5sum > DEBIAN/md5sums
57
dpkg-gencontrol -isp -plingoteach-lesson -Pdebian/lingoteach-lesson
58
chmod -R u+w,go=u-w debian/lingoteach-lesson
59
dpkg --build debian/lingoteach-lesson ..
61
.PHONY: clean binary binary-arch binary-indep