fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
ed34845b1
master
1#!/usr/bin/make -f 2# -*- makefile -*- 3 4ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS))) 5 export DH_VERBOSE=1 6 # VERBOSE to satisfy Debian policy 4.9, introduced in version 4.2.0 7 export CARGO_TERM_VERBOSE=true 8endif 9# The LTO profile sets CFLAGS/CXXFLAGS which confuse the compilation process; disable it 10# LTO is still performed by rustc based on Cargo.toml 11export DEB_BUILD_MAINT_OPTIONS=optimize=-lto 12 13%: 14 dh $@ --buildsystem=cmake --builddirectory=build 15 16# Setting the build system is still required, because otherwise the GNUmakefile gets picked up 17override_dh_auto_configure: 18 ln -s cargo-vendor/vendor vendor 19 dh_auto_configure -- -DCMAKE_BUILD_TYPE=RelWithDebInfo \ 20 -DRust_CARGO=$$(command -v cargo-1.85 || command -v cargo) \ 21 -DRust_COMPILER=$$(command -v rustc-1.85 || command -v rustc) 22 23override_dh_clean: 24 dh_clean --exclude=Cargo.toml.orig 25 -unlink vendor 26 27override_dh_auto_test: 28 cd build && make fish_run_tests