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