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