1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
#!/usr/bin/make -f
# debian/rules for gpm
include /usr/share/quilt/quilt.make
INSTALL=install
INSTALL_DATA=$(INSTALL) -m 644
INSTALL_PROGRAM=$(INSTALL) -m 755
export CFLAGS = -Wall -g -D_REENTRANT
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
configure: patch configure.in
autoconf
config.status: configure
./configure --prefix=/usr --sysconfdir=/etc
# Serialize to support parallel make
pre-patch: patch
$(MAKE) -f debian/rules config.status
build: pre-patch
dh_testdir
# for gpm_has_mouse_control
$(MAKE) -C contrib/control
$(MAKE)
clean: unpatch clean-unpatched
clean-unpatched:
dh_testdir
[ ! -f Makefile ] || $(MAKE) clean
$(RM) Makefile
rm -rf contrib/control
dh_clean
checkpo:
debconf-updatepo
@for i in debian/po/*.po; do \
echo -n "Checking: $$i "; \
msgfmt -o /dev/null -c --statistics $$i; \
done
# No binary indep packages
binary-indep:
binary-arch: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
dh_install
$(INSTALL_PROGRAM) debian/gpm.apm \
debian/gpm/etc/apm/event.d/gpm
$(INSTALL_PROGRAM) src/prog/mouse-test \
debian/gpm/usr/sbin/gpm-mouse-test
$(INSTALL_PROGRAM) contrib/scripts/microtouch-setup \
debian/gpm/usr/sbin/gpm-microtouch-setup
dh_installinfo
dh_installman
dh_installdocs
dh_installchangelogs Changes
dh_installexamples
dh_installinit
dh_installdebconf
dh_lintian
dh_link
dh_strip
dh_compress
dh_fixperms
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build binary binary-arch binary-indep clean
|