generated from general-packages/zig
24 lines
721 B
Makefile
Executable File
24 lines
721 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
include /usr/share/dpkg/architecture.mk
|
|
|
|
# Can't just run "zig build test" because some tests are know to fail
|
|
TESTS = fmt cases behavior compiler-rt universal-libc compare-output standalone stack-traces cli translate-c run-translated-c std
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_clean:
|
|
dh_auto_clean
|
|
\rm -rf zig-cache
|
|
|
|
override_dh_install:
|
|
dh_install
|
|
chrpath --delete debian/zig-nightly/usr/bin/zig
|
|
|
|
#override_dh_auto_test:
|
|
# XDG_CACHE_HOME= ./obj-$(DEB_HOST_MULTIARCH)/stage3/bin/zig build test
|
|
|
|
override_dh_auto_test:
|
|
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
|
$(foreach t,$(TESTS),XDG_CACHE_HOME= ./obj-$(DEB_HOST_MULTIARCH)/stage3/bin/zig build test-$(t) || echo "Warning test-${t} failed" ;)
|
|
endif
|