#!/usr/bin/make -f #include /usr/share/quilt/quilt.make CFLAGS = -Wall -g -D_GNU_SOURCE INSTALL_UAG := -o root -g audio # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) 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 else CFLAGS += -O2 endif clean: dh_testdir dh_clean [ ! -f Makefile ] || $(MAKE) distclean -rm -f version -rm -f configure-stamp build-stamp -rm -f config.cache config.log config.status Makefile.conf -rm -f config.sub config.guess -rm -f aplay/arecord configure: configure-stamp configure-stamp: dh_testdir -rm -f config.sub config.guess ln -s /usr/share/misc/config.sub config.sub ln -s /usr/share/misc/config.guess config.guess ./configure --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ --disable-alsaconf --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) touch configure-stamp build: configure build-stamp build-stamp: $(MAKE) CFLAGS='$(CFLAGS)' touch build-stamp install: DH_OPTIONS= install: build dh_testdir dh_testroot dh_prep $(MAKE) install DESTDIR=$(CURDIR)/debian/alsa-utils # move alsactl to /sbin mkdir debian/alsa-utils/sbin mv debian/alsa-utils/usr/sbin/alsactl debian/alsa-utils/sbin # Don't install alsaconf -rm -f debian/alsa-utils/usr/sbin/alsaconf -rm -f debian/alsa-utils/usr/share/man/man8/alsaconf* -rm -f debian/alsa-utils/usr/share/locale/*/LC_MESSAGES/alsaconf* binary-indep: binary-arch: build install dh_testdir dh_testroot dh_installdirs # We've moved the old initscript to /sbin, because now we have # an upstart job to save the sound card state dh_installinit -n --name=alsa-store --upstart-only --no-start dh_installinit -n --name=alsa-restore --upstart --no-stop dh_link dh_installdocs dh_installman cp debian/PATCHES.Debian \ debian/alsa-utils/usr/share/doc/alsa-utils/ cp debian/README.init.cs4236 \ debian/alsa-utils/usr/share/doc/alsa-utils/ install --mode=644 debian/90-alsa-ucm.rules \ debian/alsa-utils/lib/udev/rules.d/ dh_installchangelogs debian/changelog.ALSA dh_installmenu dh_strip dh_compress dh_fixperms dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary binary-arch binary-indep install configure