File: rules

package info (click to toggle)
ori 0.8.1%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,204 kB
  • ctags: 2,659
  • sloc: cpp: 22,383; ansic: 5,870; sh: 451; python: 205; makefile: 21
file content (35 lines) | stat: -rwxr-xr-x 735 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
#!/usr/bin/make -f

#export DH_VERBOSE=1

SCONS := scons
SCONSFLAGS := --cache-disable

%:
	dh $@

override_dh_auto_build:
	$(SCONS) $(SCONSFLAGS) \
	  VERBOSE=1
#	  WITH_HTTPD=1 \
	  WITH_ORILOCAL=1 \
	  WITH_MDNS=1 \
	  WITH_LIBS3=1

override_dh_auto_install:
	$(SCONS) $(SCONSFLAGS) DESTDIR=$(CURDIR)/debian/ori PREFIX=/usr install

# Tests require the fuse kernel module to be loaded and so can't be
# run at build-time
override_dh_auto_test:

override_dh_auto_clean:
	$(SCONS) $(SCONSFLAGS) -c
	rm -f config.log ori_test_results.txt
	rm -rf build

get-orig-source:
	uscan --verbose --force-download --repack --compression xz

.PHONY: override_dh_auto_build override_dh_auto_install \
	override_dh_auto_test override_dh_auto_clean