File: rules

package info (click to toggle)
sigx 2.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,040 kB
  • ctags: 1,226
  • sloc: cpp: 3,103; ansic: 653; xml: 206; python: 62; makefile: 22
file content (29 lines) | stat: -rwxr-xr-x 671 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
#!/usr/bin/make -f

DEBIAN_DIR := $(dir $(firstword $(MAKEFILE_LIST)))
SCONS = scons --directory $(DEB_BUILDDIR) CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)"
SCONS_OPTS = DESTDIR="$(CURDIR)/debian/tmp/" PREFIX=/usr

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 $@