File: rules

package info (click to toggle)
sigx 2.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,144 kB
  • ctags: 1,311
  • sloc: cpp: 3,103; ansic: 653; xml: 206; python: 65; makefile: 26
file content (34 lines) | stat: -rwxr-xr-x 845 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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

DEBIAN_DIR := $(dir $(firstword $(MAKEFILE_LIST)))
SCONS = scons --directory $(DEB_BUILDDIR) CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" SHLINKFLAGS="$(LDFLAGS)"
SCONS_OPTS =										\
	DESTDIR="$(CURDIR)/debian/tmp/"							\
	PREFIX=/usr									\
	LIBDIR=$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)

get-orig-source:
	uscan --destdir $(CURDIR) \
	      --watchfile $(DEBIAN_DIR)/watch \
		  --repack \
		  --rename \
		  --force-download

override_dh_auto_clean:
	scons --keep-going --clean distclean || true
	rm -rf docs/html \
	       options.cache \
		   .sconsign.dblite \
		   site_scons/site_tools/*.pyc

override_dh_auto_build:
	$(SCONS) $(SCONS_OPTS)
	$(SCONS) docs $(SCONS_OPTS)

override_dh_auto_install:
	$(SCONS) install $(SCONS_OPTS)

%:
	dh $@