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
|
#!/usr/bin/make -f
# Derived from debhelper/dh_make example.
SHELL = /bin/bash
#export DH_VERBOSE=1
export DH_COMPAT=2
build: build-stamp
build-stamp:
dh_testdir
if sh debian/fpermissive; then \
CXXFLAGS="-g -O2 -Wall -fpermissive" ./configure --prefix=/usr; \
else CXXFLAGS="-g -O2 -Wall" ./configure --prefix=/usr; fi
$(MAKE)
touch $@
clean:
dh_testdir
dh_testroot
[ ! -f Makefile ] || $(MAKE) distclean
dh_clean build-stamp nplauncher/peruser4-helpers
install: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs usr/X11R6
$(MAKE) install prefix=`pwd`/debian/peruser/usr
cd debian/peruser/usr && mv bin X11R6
chmod 644 debian/peruser/usr/share/news-peruser/{Peruser.pm,peruser4-helpers}
binary-indep:
# We have nothing to do, there aren't any arch-indep packages here.
binary-arch: install
dh_testdir
dh_testroot
dh_installdocs README TODO
dh_installchangelogs ChangeLog
dh_installmenu
dh_installmanpages
dh_strip
dh_compress
cd debian/peruser/usr/X11R6/man/man1; \
for i in collections compose config sepax summary text transfer \
launcher feedback getfile yesno gettext ; \
do ln -s peruser.1x.gz np$$i.1x.gz ; done
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
|