X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2Frules;h=f391d2e40bf9c131006442ec0aa014c4b4b0d16a;hb=refs%2Fheads%2Fmaster;hp=236bb6ef539eb03e0e53a3f922a8f5126573f2de;hpb=795fb988211df268a8f7724bd2f4493c594abee9;p=debian%2Fatlc diff --git a/debian/rules b/debian/rules index 236bb6e..f391d2e 100755 --- a/debian/rules +++ b/debian/rules @@ -9,28 +9,28 @@ DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) -CFLAGS = -Wall -g +CFLAGS = -Wall -g -O2 -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif config.status: configure dh_testdir + cp -f /usr/share/misc/config.sub config.sub + cp -f /usr/share/misc/config.guess config.guess ./configure \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \ + --docdir=\$${prefix}/share/doc/atlc \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ --enable-hardware-info -build: build-stamp +build: build-arch build-indep +build-arch: build-stamp +build-indep: build-stamp build-stamp: config.status dh_testdir $(MAKE) @@ -42,22 +42,15 @@ clean: dh_testroot rm -f build-stamp config-stamp - -$(MAKE) distclean + [ ! -f Makefile ] || $(MAKE) distclean rm -rf tmp -ifneq "$(wildcard /usr/share/misc/config.sub)" "" - cp -f /usr/share/misc/config.sub config.sub -endif -ifneq "$(wildcard /usr/share/misc/config.guess)" "" - cp -f /usr/share/misc/config.guess config.guess -endif - dh_clean install: dh_testdir dh_testroot - dh_clean -k + dh_prep dh_installdirs $(MAKE) install DESTDIR=$(CURDIR)/debian/atlc