File: rules

package info (click to toggle)
falcon 1.8.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,464 kB
  • sloc: python: 29,696; ansic: 26,508; sh: 1,119; makefile: 537; xml: 15
file content (40 lines) | stat: -rwxr-xr-x 794 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
37
38
39
40
#!/usr/bin/make -f

#DH_VERBOSE = 1
#include /usr/share/dpkg/default.mk
export LC_ALL=C.UTF-8

export FALCON_WORKSPACE=$(CURDIR)
export FALCON_PREFIX=$(CURDIR)/inst
export FALCON_INSTALL_RULE=install

export PYTHONPATH:=$(FALCON_PREFIX)/pylib:$(PYTHONPATH)

%:
	dh $@ --with python2

override_dh_auto_build:
	mkdir -p \
		$(FALCON_PREFIX)/bin \
		$(FALCON_PREFIX)/include \
		$(FALCON_PREFIX)/lib \
		$(FALCON_PREFIX)/pylib
	$(MAKE) all

override_dh_auto_test: unit-tests integration-tests ;

.PHONY: unit-tests
unit-tests:
	$(MAKE) -C FALCON test

.PHONY: integration-tests
integration-tests:
	PATH=$(FALCON_PREFIX)/bin:$(PATH) $(MAKE) test
	$(MAKE) -C FALCON-examples clean-synth0

override_dh_install:
	dh_install -XLICENSE

override_dh_auto_clean:
	dh_auto_clean
	$(RM) -r $(FALCON_PREFIX)