blob: dc2d6dc642e745da63d5bc8f6e1d5b5a0711d228 [file] [log] [blame]
Austin Schuh8c794d52019-03-03 21:17:37 -08001#!/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.
15export DH_OPTIONS
16
17CFLAGS = -Wall -g
18
19ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20 CFLAGS += -O0
21else
22 CFLAGS += -O3
23endif
24ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
25 INSTALL_PROGRAM += -s
26endif
27
28build: build-indep-stamp
29build-indep-stamp:
30 #cd examples && $(MAKE) "LDFLAGS=-lm -lpthread"
31 #cd examples && $(MAKE) clean
32 #$(MAKE) doc
33 touch build-indep-stamp
34
35clean:
36 dh_testdir
37 dh_testroot
38 rm -f build-arch-stamp build-indep-stamp
39 dh_clean
40
41install:
42 dh_testdir
43 dh_testroot
44 dh_clean -k
45 dh_installdirs
46 dh_install
47
48binary-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.
77binary-arch: build install
78
79binary: binary-indep binary-arch
80.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch