#!/usr/bin/make -f
-# debian/rules for gtk-theme-switch
+%:
+ dh $@
+override_dh_auto_build:
+ make CFLAGS="$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get LDFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)"
+override_dh_auto_install:
-BDIR = debian/gtk-theme-switch
-
-export CFLAGS = -Wall -g $(OPTIMIZE)
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- OPTIMIZE = -O0
-else
- OPTIMIZE = -O2
-endif
-
-build: build-stamp
-build-stamp:
- dh_testdir
- $(MAKE)
- touch build-stamp
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp gtk-theme-switch2
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_prep
- dh_installdirs usr/bin
- install -m 755 gtk-theme-switch2 $(BDIR)/usr/bin
-
-binary-indep:
-# Nothing to be done.
-
-binary-arch: build install
- dh_testdir
- dh_testroot
-
- dh_installmenu
- dh_installdocs todo readme
- dh_installchangelogs ChangeLog
-
- dh_installman gtk-theme-switch2.1
- dh_compress
-
- dh_link
- dh_strip
- dh_fixperms
-
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-arch
-.PHONY: build clean binary-arch binary install binary-indep