#!/usr/bin/make -f # debian/rules for libdvdplay - uses debhelper. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This is the debhelper compatability version to use. export DH_COMPAT=3 # Compilation options export CONFIG_FLAGS="--prefix=/usr" # See /usr/share/doc/autotools-dev/README.Debian.gz export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) # FOR AUTOCONF 2.52 AND NEWER ONLY ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) confflags += --build $(DEB_HOST_GNU_TYPE) else confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) endif build: build-stamp build-stamp: dh_testdir touch configure.ac \ && touch aclocal.m4 \ && touch configure \ && touch config.h.in \ && touch `find . -name Makefile.in` ./configure $(confflags) --prefix=/usr --mandir=$${prefix}/share/man \ --infodir=$${prefix}/share/info $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp -$(MAKE) distclean dh_clean -test -r /usr/share/misc/config.sub && \ cp -f /usr/share/misc/config.sub config.sub -test -r /usr/share/misc/config.guess && \ cp -f /usr/share/misc/config.guess config.guess install: build dh_testdir dh_testroot dh_clean -k dh_installdirs $(MAKE) install DESTDIR=`pwd`/debian/libdvdplay0/ ln -s libdvdplay0 debian/libdvdplay0-dev/usr/share/doc/libdvdplay0-dev mv debian/libdvdplay0/usr/lib/*.so debian/libdvdplay0/usr/lib/*a \ debian/libdvdplay0-dev/usr/lib/ mv debian/libdvdplay0/usr/include debian/libdvdplay0-dev/usr/ # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install # dh_testversion dh_testdir dh_testroot # dh_installdebconf dh_installdocs AUTHORS NEWS README THANKS TODO # dh_installexamples # dh_installmenu # dh_installemacsen # dh_installpam # dh_installinit # dh_installcron # dh_installman # dh_installinfo # dh_undocumented dh_installchangelogs ChangeLog dh_link dh_strip dh_compress dh_fixperms dh_makeshlibs dh_installdeb # dh_perl dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install