mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
debian/rules: include the C run-time system when building .deb packages
This commit is contained in:
10
debian/rules
vendored
10
debian/rules
vendored
@@ -4,18 +4,22 @@
|
|||||||
+dh $@
|
+dh $@
|
||||||
|
|
||||||
override_dh_auto_build:
|
override_dh_auto_build:
|
||||||
cabal build
|
LD_LIBRARY_PATH=$(CURDIR)/src/runtime/c/.libs cabal build
|
||||||
|
|
||||||
override_dh_auto_clean:
|
override_dh_auto_clean:
|
||||||
rm -fr dist/build
|
rm -fr dist/build
|
||||||
|
-cd src/runtime/c && make clean
|
||||||
|
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
|
cd src/runtime/c && ./setup.sh configure --prefix=/usr
|
||||||
|
cd src/runtime/c && ./setup.sh build
|
||||||
cabal update
|
cabal update
|
||||||
cabal install --only-dependencies
|
cabal install --only-dependencies
|
||||||
cabal configure --prefix=/usr -fserver
|
cabal configure --prefix=/usr -fserver -fc-runtime --extra-lib-dirs=$(CURDIR)/src/runtime/c/.libs --extra-include-dirs=$(CURDIR)/src/runtime/c
|
||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
cabal copy --destdir=$(CURDIR)/debian/gf
|
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
|
||||||
|
|
||||||
override_dh_auto_test:
|
override_dh_auto_test:
|
||||||
ifneq (nocheck,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
ifneq (nocheck,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
||||||
|
|||||||
Reference in New Issue
Block a user