Skip to content
Snippets Groups Projects
Commit 0e616507 authored by Albert Gräf's avatar Albert Gräf
Browse files

debuild: Make 'make check' work, cosmetic changes.

parent c4495143
No related branches found
No related tags found
No related merge requests found
...@@ -85,8 +85,8 @@ export macos_target = 10.9 ...@@ -85,8 +85,8 @@ export macos_target = 10.9
# Installation prefix under which Pd-l2ork is installed (Linux only). If this # Installation prefix under which Pd-l2ork is installed (Linux only). If this
# isn't set, a default location will be used (usually /usr/local). NOTE: We # isn't set, a default location will be used (usually /usr/local). NOTE: We
# *always* assume that this variable is set properly in the install targets # *always* assume that this variable is set properly in the install targets,
# (see below). # as well as the (Linux) check target (see below).
prefix = /usr prefix = /usr
ifneq ($(prefix),) ifneq ($(prefix),)
...@@ -164,7 +164,7 @@ os = $(shell uname|sed 's/^\(MINGW[0-9]*\)_NT.*/\1/') ...@@ -164,7 +164,7 @@ os = $(shell uname|sed 's/^\(MINGW[0-9]*\)_NT.*/\1/')
ifeq ($(os),Linux) ifeq ($(os),Linux)
# Linux (all flavors) # Linux (all flavors)
pdprog = packages/linux_make/build/usr/bin/pd-l2ork pdprog = packages/linux_make/build$(prefix)/bin/pd-l2ork
else ifeq ($(os),Darwin) else ifeq ($(os),Darwin)
# Mac # Mac
pdprog = packages/darwin_app/build/*.app/Contents/Resources/app.nw/bin/pd-l2ork pdprog = packages/darwin_app/build/*.app/Contents/Resources/app.nw/bin/pd-l2ork
......
...@@ -30,14 +30,16 @@ override_dh_auto_configure: ...@@ -30,14 +30,16 @@ override_dh_auto_configure:
override_dh_auto_clean: override_dh_auto_clean:
# Need to disable this, 'make check' currently fails, probably due to our # This runs too late, 'make check' then fails, probably due to our meddling
# meddling with the directory layout, executable names, etc. # with the directory layout, executable names, etc., during 'make install'.
# Instead we invoke 'make check' right after the build, see below.
override_dh_auto_test: override_dh_auto_test:
override_dh_auto_build: override_dh_auto_build:
# Copy the nw.js sources to where purr-data wants them. # Copy the nw.js sources to where purr-data wants them.
tar -xf debian/nwjs/$(nwjspkg)-$(arch).tar.gz && rm -rf pd/nw/nw && mv $(nwjspkg)-$(arch) pd/nw/nw tar -xf debian/nwjs/$(nwjspkg)-$(arch).tar.gz && rm -rf pd/nw/nw && mv $(nwjspkg)-$(arch) pd/nw/nw
cd l2ork_addons && (export inst_dir=$(prefix); ./tar_em_up.sh -B -n) cd l2ork_addons && (export V=0 inst_dir=$(prefix); ./tar_em_up.sh -Bn)
make check prefix=$(prefix)
override_dh_auto_install: override_dh_auto_install:
mkdir -p debian/purr-data && mv packages/linux_make/build/* debian/purr-data mkdir -p debian/purr-data && mv packages/linux_make/build/* debian/purr-data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment