#!/usr/bin/make -f # TODO # (2023-07-28) # - embed via component the oracles files # git clone https://code.ornl.gov/gonzalo_3/OraclesDmrg.git # this way no need for an internet connection during autopkgtests # - I already ping the author for a (> 6.04) version which build out of the box. # until then no need to package 6.04 # output every command that modifies files on the build system. #export DH_VERBOSE = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) %: dh $@ override_dh_auto_clean: [ -f psimaglite/lib/Makefile ] && $(MAKE) -C psimaglite/lib/ clean || true [ -f src/Makefile ] && $(MAKE) -C src clean || true $(RM) src/KronUtil/libkronutil.a src/libdmrgpp.a src/operator $(RM) psimaglite/lib/Makefile src/GitRevision.h $(RM) src/KronUtil/Makefile src/Makefile $(RM) -f src/KronUtil/test1 src/KronUtil/test2 override_dh_auto_configure: cd psimaglite/lib/ && ./configure.pl -c ../../debian/debianconfig.psiTag cd ./src && ./configure.pl -c ../debian/debianconfig.psiTag override_dh_auto_build: sed -i 's#LDFLAGS += -L/usr/lib/x86_64-linux-gnu/hdf5/serial/#LDFLAGS += -L/usr/lib/${DEB_HOST_MULTIARCH}/hdf5/serial/#' ./src/Makefile $(MAKE) -C psimaglite/lib/ $(MAKE) -C src override_dh_auto_install: cp doc/dmrg.8 debian/dmrg.1 dh_installman debian/dmrg.1 install -d debian/dmrgpp/usr/bin install src/dmrg debian/dmrgpp/usr/bin install -d debian/dmrgpp/usr/lib/${DEB_HOST_MULTIARCH}/dmrgpp/bin/ install src/observe debian/dmrgpp/usr/lib/${DEB_HOST_MULTIARCH}/dmrgpp/bin/ install src/toolboxdmrg debian/dmrgpp/usr/lib/${DEB_HOST_MULTIARCH}/dmrgpp/bin/ install src/operator debian/dmrgpp/usr/lib/${DEB_HOST_MULTIARCH}/dmrgpp/bin/ install src/manyOmegas debian/dmrgpp/usr/lib/${DEB_HOST_MULTIARCH}/dmrgpp/bin/ install src/procOmegas debian/dmrgpp/usr/lib/${DEB_HOST_MULTIARCH}/dmrgpp/bin/