File: rules

package info (click to toggle)
pd-mrpeach 0.1~svn17615-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,720 kB
  • ctags: 2,541
  • sloc: ansic: 16,937; makefile: 1,364; sh: 60
file content (36 lines) | stat: -rwxr-xr-x 1,103 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2015-2016 IOhannes m zmölnig <umlaeute@debian.org>
# Description: Main Debian packaging script for mrpeach

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/class/pd.mk
include /usr/share/cdbs/1/rules/utils.mk

CDBS_BUILD_DEPENDS_rules_utils_buildinfo =

#CDBS_BUILD_DEPENDS_rules_utils_copyright-check =
DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
	^(midifile/I_Wanna_Be_Sedated\.mid|debian/(changelog|copyright(|_hints|_newhints)))$

BUILD_DATE:=$(shell date -u -d "$$(dpkg-parsechangelog -SDate)" +"%Y/%m/%d at %H:%M:%S UTC")
CPPFLAGS+=-DBUILD_DATE='\"$(BUILD_DATE)\"'

build/pd-mrpeach-net::
	make -C net \
		 CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
build/pd-cmos::
	make -C cmos \
		 CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"

binary-post-install/pd-mrpeach::
	find "$(CURDIR)/debian/pd-mrpeach" -name "*.mid" -exec chmod a-x {} +

clean::
	make clean -C cmos
	make clean -C net



CFLAGS+=$(CPPFLAGS) -I/usr/include/pd