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 93 94 95 96
|
#!/usr/bin/make -f
# Author: David Mart�nez <ender@debian.org>
version=$(shell expr `cat VERSION`)
CFLAGS = -O2 -Wall
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g
endif
export CFLAGS
build: build-stamp
build-stamp:
dh_testdir
./configure --enable-ipv6 --prefix=/usr
$(MAKE)
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp install-stamp
# Add here commands to clean up after the build process.
-$(MAKE) distclean
dh_clean
install: install-stamp
install-stamp: build
dh_testdir
dh_testroot
dh_clean
# dh_installdirs usr/include/uclmmbase usr/lib
install -d `pwd`/debian/tmp/usr/include/uclmmbase
install -d `pwd`/debian/tmp/usr/lib
install -m 644 src/*.h `pwd`/debian/tmp/usr/include/uclmmbase
install -m 644 src/libuclmmbase.a `pwd`/debian/tmp/usr/lib
install -m 644 src/libuclmmbase.so.* `pwd`/debian/tmp/usr/lib
cd `pwd`/debian/tmp/usr/lib && ln -s libuclmmbase.so.$(version) libuclmmbase.so.1
cd `pwd`/debian/tmp/usr/lib && ln -s libuclmmbase.so.$(version) libuclmmbase.so
touch install-stamp
# Build architecture-independent files here.
binary-indep:
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install libuclmmbase-dev libuclmmbase
libuclmmbase: build
dh_testdir -plibuclmmbase1
dh_testroot -plibuclmmbase1
dh_installdirs -plibuclmmbase1
# rm -rf debian/tmp/usr/include debian/tmp/usr/lib/libuclmmbase.a
dh_movefiles -plibuclmmbase1
dh_installdocs -plibuclmmbase1
dh_installchangelogs MODS -plibuclmmbase1
dh_strip -plibuclmmbase1
dh_compress -plibuclmmbase1
dh_fixperms -plibuclmmbase1
dh_installdeb -plibuclmmbase1
dh_shlibdeps -plibuclmmbase1
dh_gencontrol -plibuclmmbase1
dh_makeshlibs -plibuclmmbase1
dh_installdeb -plibuclmmbase1
dh_md5sums -plibuclmmbase1
dh_builddeb -plibuclmmbase1
libuclmmbase-dev: build
dh_testdir -plibuclmmbase1-dev
dh_testroot -plibuclmmbase1-dev
# dh_clean -plibuclmmbase1-dev -k
dh_installdirs -plibuclmmbase1-dev
dh_movefiles -plibuclmmbase1-dev -Xacconfig.h
dh_installdocs -plibuclmmbase1-dev
dh_installchangelogs MODS -plibuclmmbase1-dev
dh_strip -plibuclmmbase1-dev
dh_compress -plibuclmmbase1-dev
dh_fixperms -plibuclmmbase1-dev
dh_installdeb -plibuclmmbase1-dev
dh_shlibdeps -plibuclmmbase1-dev
dh_gencontrol -plibuclmmbase1-dev
dh_makeshlibs -plibuclmmbase1-dev
dh_installdeb -plibuclmmbase1-dev
dh_md5sums -plibuclmmbase1-dev
dh_builddeb -plibuclmmbase1-dev
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
|