Austin Schuh | 8c794d5 | 2019-03-03 21:17:37 -0800 | [diff] [blame] | 1 | #!/usr/bin/make -f |
| 2 | # -*- makefile -*- |
| 3 | # Sample debian/rules that uses debhelper. |
| 4 | # GNU copyright 1997 to 1999 by Joey Hess. |
| 5 | # |
| 6 | # Modified to make a template file for a multi-binary package with separated |
| 7 | # build-arch and build-indep targets by Bill Allombert 2001 |
| 8 | # |
| 9 | # Modified in order to update the package by François-Xavier Dupé 2007 |
| 10 | |
| 11 | # Uncomment this to turn on verbose mode. |
| 12 | #export DH_VERBOSE=1 |
| 13 | |
| 14 | # This has to be exported to make some magic below work. |
| 15 | export DH_OPTIONS |
| 16 | |
| 17 | CFLAGS = -Wall -g |
| 18 | |
| 19 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
| 20 | CFLAGS += -O0 |
| 21 | else |
| 22 | CFLAGS += -O3 |
| 23 | endif |
| 24 | ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
| 25 | INSTALL_PROGRAM += -s |
| 26 | endif |
| 27 | |
| 28 | build: build-indep-stamp |
| 29 | build-indep-stamp: |
| 30 | #cd examples && $(MAKE) "LDFLAGS=-lm -lpthread" |
| 31 | #cd examples && $(MAKE) clean |
| 32 | #$(MAKE) doc |
| 33 | touch build-indep-stamp |
| 34 | |
| 35 | clean: |
| 36 | dh_testdir |
| 37 | dh_testroot |
| 38 | rm -f build-arch-stamp build-indep-stamp |
| 39 | dh_clean |
| 40 | |
| 41 | install: |
| 42 | dh_testdir |
| 43 | dh_testroot |
| 44 | dh_clean -k |
| 45 | dh_installdirs |
| 46 | dh_install |
| 47 | |
| 48 | binary-indep: build install |
| 49 | dh_testdir |
| 50 | dh_testroot |
| 51 | dh_installchangelogs |
| 52 | dh_installdocs |
| 53 | dh_compress |
| 54 | # dh_installmenu |
| 55 | # dh_installdebconf |
| 56 | # dh_installlogrotate |
| 57 | # dh_installemacsen |
| 58 | # dh_installpam |
| 59 | # dh_installmime |
| 60 | # dh_installinit |
| 61 | # dh_installcron |
| 62 | # dh_installinfo |
| 63 | # dh_installman |
| 64 | dh_link |
| 65 | dh_strip |
| 66 | dh_fixperms |
| 67 | # dh_perl |
| 68 | # dh_python |
| 69 | dh_makeshlibs |
| 70 | dh_installdeb |
| 71 | dh_shlibdeps |
| 72 | dh_gencontrol |
| 73 | dh_md5sums |
| 74 | dh_builddeb |
| 75 | |
| 76 | # Build architecture dependant packages using the common target. |
| 77 | binary-arch: build install |
| 78 | |
| 79 | binary: binary-indep binary-arch |
| 80 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch |