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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DEB_BUILD_MAINT_OPTIONS=reproducible=-timeless
LD_LIBRARY_PATH += debian/libexpeyes1/usr/lib
export DEB_BUILD_HARDENING=1
#export CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2"
export QT_SELECT := 5
%:
dh $@ --with python3
BUILD_DIR = $(CURDIR)/debian/build
override_dh_auto_build-arch:
mkdir $(CURDIR)/debian/build
$(MAKE) all_arch HOME=$(BUILD_DIR)
# do not keep the .la file
rm -f debian/tmp/usr/lib/libej.la
override_dh_auto_build-indep:
$(MAKE) all_indep
cd eyes17/helpFiles; $(MAKE) fixTheLinks; $(MAKE) userManual
override_dh_auto_clean:
dh_auto_clean
# the clean process compiles a few Python scripts
find . -name __pycache__ | xargs rm -rf
rm -rf $(BUILD_DIR)
# remove broken symlinks which can be in the source
find eyes17/helpFiles -xtype l | xargs rm -f
find eyesjunior/helpFiles -xtype l | xargs rm -f
override_dh_auto_install-indep:
make install_indep DESTDIR=$(CURDIR)/debian/tmp
dh_auto_install -i
make -C po install DESTDIR=$(CURDIR)/debian/expeyes
make -C microhope/po install DESTDIR=$(CURDIR)/debian/microhope
# prevents lintian error about PYCACHE
find $(CURDIR)/debian/ -type d -name __pycache__| xargs rm -rf;
override_dh_auto_install-arch:
make install_arch DESTDIR=$(CURDIR)/debian/tmp
dh_auto_install -a
|