1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#!/usr/bin/make -f
export DEB_BUILD_HARDENING=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -fno-aggressive-loop-optimizations
include /usr/share/dpkg/buildflags.mk
CFLAGS += $(CPPFLAGS)
CXXFLAGS += $(CPPFLAGS)
%:
dh $@ --buildsystem=cmake --builddirectory=build
override_dh_auto_build:
dh_auto_build -- all doc-man
override_dh_auto_clean:
dh_auto_clean
rm -rf version.h test/.lpass
override_dh_auto_install:
dh_auto_install
cp contrib/lpass_zsh_completion debian/lastpass-cli/usr/share/zsh/vendor-completions/_lpass
override_dh_auto_configure:
dh_auto_configure -- -DCMAKE_POLICY_VERSION_MINIMUM=3.5
override_dh_auto_test:
dh_auto_test --buildsystem=makefile --builddirectory=.
|