97 lines
1.9 KiB
Makefile
Executable file
97 lines
1.9 KiB
Makefile
Executable file
#!/usr/bin/make -f
|
|
# Sample debian/rules that uses debhelper.
|
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
#export DH_VERBOSE=1
|
|
|
|
# This is the debhelper compatability version to use.
|
|
export DH_COMPAT=3
|
|
|
|
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
|
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
|
|
|
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
|
CFLAGS += -O0
|
|
endif
|
|
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
|
INSTALL_PROGRAM += -s
|
|
endif
|
|
|
|
build: build-stamp
|
|
build-stamp:
|
|
dh_testdir
|
|
|
|
./configure \
|
|
--host=$(DEB_HOST_GNU_TYPE) \
|
|
--build=$(DEB_BUILD_GNU_TYPE) \
|
|
--prefix=/usr \
|
|
--mandir=\$${prefix}/share/man \
|
|
--datadir=\$${prefix}/share/doc/ \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var/lib/libcomedi0 \
|
|
--disable-dependency-tracking
|
|
|
|
$(MAKE)
|
|
|
|
touch build-stamp
|
|
|
|
clean:
|
|
dh_testdir
|
|
dh_testroot
|
|
rm -f build-stamp
|
|
|
|
-$(MAKE) distclean
|
|
|
|
dh_clean
|
|
|
|
install: build
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_clean -k
|
|
dh_installdirs
|
|
|
|
$(MAKE) install prefix=`pwd`/debian/tmp/usr \
|
|
pkgdatadir=`pwd`/debian/tmp/usr/share/doc/libcomedi0 \
|
|
sysconfdir=`pwd`/debian/tmp/etc \
|
|
localstatedir=`pwd`/debian/tmp/var
|
|
|
|
cd debian/tmp/usr/share/doc && ln -s libcomedi0 libcomedi-dev
|
|
|
|
binary-indep: build install
|
|
|
|
binary-arch: build install
|
|
# dh_testversion
|
|
dh_testdir
|
|
dh_testroot
|
|
#
|
|
# build libcomedi${major} package by moving files from comedilib-dev
|
|
#
|
|
dh_movefiles
|
|
|
|
# dh_installdebconf
|
|
dh_installdocs
|
|
dh_installexamples
|
|
dh_installmenu
|
|
# dh_installemacsen
|
|
# dh_installpam
|
|
# dh_installinit
|
|
dh_installcron
|
|
|
|
dh_installinfo
|
|
# dh_undocumented
|
|
dh_installchangelogs
|
|
dh_link
|
|
dh_strip
|
|
dh_compress
|
|
dh_fixperms
|
|
dh_makeshlibs
|
|
dh_installdeb
|
|
# dh_perl
|
|
dh_shlibdeps -l`pwd`/debian/tmp/usr/lib/
|
|
dh_gencontrol
|
|
dh_md5sums
|
|
dh_builddeb
|
|
|
|
binary: binary-indep binary-arch
|
|
.PHONY: build clean binary-indep binary-arch binary install
|