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
|
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatability version to use.
export DH_COMPAT=2
package=grafix
version=$(shell expr `pwd` : '.*-\([0-9.]*\)')
version_major=$(shell expr `pwd` : '.*-\([0-9]*\).[0-9.]*')
curdir=$(shell pwd)
headers = animator.h eventnames.h files.h font-selector.h icon.h \
lattice.h palette.h smolark.h three-nxnynz.h tree.h tree_icon.h \
window.h
build: build-stamp
build-stamp:
dh_testdir
vers=$(version); export vers; make PICFLAG=-fPIC -e libgrafix.so
rm -f *.o
vers=$(version); export vers; make -e libgrafix.a
touch build-stamp
clean:
dh_testdir
dh_testroot
-make clean
-rm -f *.so
-rm -f `find . -name "*~"`
-rm -f build-stamp install-stamp
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
cp $(headers) debian/grafix-dev/usr/include/$(package)
chmod 644 debian/grafix-dev/usr/include/$(package)/*
install -m644 lib$(package).so debian/grafix1/usr/lib/lib$(package).so.$(version)
cd debian/grafix1/usr/lib; ln -s lib$(package).so.$(version) lib$(package).so.1
cd debian/grafix-dev/usr/lib; ln -s lib$(package).so.1 lib$(package).so
cp libgrafix.a debian/grafix-dev/usr/lib/
touch install-stamp
binary-indep:
$(checkdir)
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installchangelogs LOG.txt
dh_installexamples
dh_link
dh_strip
dh_compress
dh_fixperms
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
define checkdir
test -f debian/rules
endef
binary: binary-indep binary-arch
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot
|