summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2014-06-19 00:43:53 +0000
committerhallgren <hallgren@chalmers.se>2014-06-19 00:43:53 +0000
commit2feb55292562b973e8bdfb34af0460ba73dd2e41 (patch)
treeee72da074812536288dabea4bc5e79020fc23ac7 /debian/rules
parentf3c8adcc59baa28f0ce8e494ed85fcc93d16d2dd (diff)
Include the Python binding to the C run-time system in Debian packages
Diffstat (limited to 'debian/rules')
-rw-r--r--debian/rules6
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index 197aa92d2..022a77292 100644
--- a/debian/rules
+++ b/debian/rules
@@ -4,10 +4,13 @@
+dh $@
override_dh_auto_build:
- LD_LIBRARY_PATH=$(CURDIR)/src/runtime/c/.libs cabal build
+ cd src/runtime/python && EXTRA_INCLUDE_DIRS=$(CURDIR)/src/runtime/c EXTRA_LIB_DIRS=$(CURDIR)/src/runtime/c/.libs python setup.py build
+ echo LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(CURDIR)/src/runtime/c/.libs
+ LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(CURDIR)/src/runtime/c/.libs cabal build
override_dh_auto_clean:
rm -fr dist/build
+ -cd src/runtime/python && rm -fr build
-cd src/runtime/c && make clean
override_dh_auto_configure:
@@ -20,6 +23,7 @@ override_dh_auto_configure:
override_dh_auto_install:
LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(CURDIR)/src/runtime/c/.libs cabal copy --destdir=$(CURDIR)/debian/gf
cd src/runtime/c && ./setup.sh copy prefix=$(CURDIR)/debian/gf/usr
+ cd src/runtime/python && python setup.py install --prefix=$destdir$prefix
override_dh_auto_test:
ifneq (nocheck,$(filter nocheck,$(DEB_BUILD_OPTIONS)))