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
|
#!/usr/bin/make -f
#
# Simple rules by Milan Zamazal.
package=xkbsel
CONFOPTIONS = --prefix=/usr --localstatedir=/var/lib --sysconfdir=/etc/xkbsel --mandir=/usr/share/man --with-gnome
WORKDIR = `pwd`
INSTALLVARS = prefix=$(WORKDIR)/debian/tmp/usr localstatedir=$(WORKDIR)/debian/tmp/var/lib sysconfdir=$(WORKDIR)/debian/tmp/etc/xkbsel mandir=$(WORKDIR)/debian/tmp/usr/share/man CORBADIR=$(WORKDIR)/debian/$(package)-gnome/etc
DEBCFLAGS := -O2 -DDEBIAN
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
DEBCFLAGS += -g
endif
stamp-configure:
dh_testdir
libtoolize --force --copy
automake && aclocal && autoconf
./configure $(CONFOPTIONS)
touch stamp-configure
build: stamp-configure
dh_testdir
-rm -f build
make CFLAGS='$(DEBCFLAGS)' LDFLAGS=''
touch build
clean: stamp-configure
dh_testdir
-rm -f build stamp-configure
make maintainer-clean
dh_clean
binary-indep: build
binary-arch: build
dh_testdir
dh_testroot
dh_installdirs
make install $(INSTALLVARS)
# Install xkbsel-dev
mv debian/tmp/usr/include/* debian/libxkbsel-dev/usr/include/xkbsel/
mv debian/tmp/usr/lib/* debian/libxkbsel-dev/usr/lib/
-rmdir -p debian/tmp/usr/include debian/tmp/usr/lib
# Install xkbsel-gnome
mv debian/tmp/usr/bin/xkbsel_gnome_applet \
debian/xkbsel-gnome/usr/bin/
mv debian/tmp/usr/share/applets debian/xkbsel-gnome/etc/gnome/apps
dh_installdocs ABOUT-NLS AUTHORS NEWS README TODO doc/protocol.txt
dh_installchangelogs
install -m 644 debian/xkbsel_gnome_applet.1x \
debian/xkbsel-gnome/usr/share/man/man1/
dh_installmenu
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
# Below here is fairly generic really
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean
|