#!/usr/bin/make -f pkg_bin = hexbox pkg_lib = libhexbox1.5-cil override_dh_auto_build: python3 $(CURDIR)/debian/remove-localized-resources.py sed -i 's/AssemblyVersion("1\.5\.0\.\*")/AssemblyVersion("1.5.0.0")/' \ $(CURDIR)/sources/Be.Windows.Forms.HexBox/AssemblyInfo.cs \ $(CURDIR)/sources/Be.HexEditor/Properties/AssemblyInfo.cs /usr/bin/xbuild /p:TargetFrameworkVersion="v4.5" $(CURDIR)/sources/Be.HexEditor.sln mdoc update -i ./sources/Be.Windows.Forms.HexBox/Be.Windows.Forms.HexBox.xml \ -o monodocer ./sources/Be.Windows.Forms.HexBox/bin/Debug/Be.Windows.Forms.HexBox.dll mdoc assemble -o hexbox monodocer override_dh_auto_install: #dh_install -p$(pkg_bin) debian/hexbox usr/bin install -D -m0755 $(CURDIR)/debian/hexbox.sh $(CURDIR)/debian/hexbox/usr/bin/hexbox dh_install -p$(pkg_bin) sources/Be.HexEditor/bin/Debug/Be.HexEditor.exe usr/lib/cli/Be.HexEditor/ dh_install -p$(pkg_lib) sources/Be.HexEditor/bin/Debug/Be.Windows.Forms.HexBox.dll usr/lib/cli/Be.Windows.Forms.HexBox override_dh_fixperms: dh_fixperms chmod 0644 debian/$(pkg_lib)/usr/lib/cli/Be.Windows.Forms.HexBox/Be.Windows.Forms.HexBox.dll %: dh $@ override_dh_auto_clean: if [ -x /usr/bin/xbuild ]; then \ /usr/bin/xbuild $(CURDIR)/sources/Be.HexEditor.sln /target:Clean; \ fi override_dh_clean: dh_clean sources/Be.Windows.Forms.HexBox/Be.Windows.Forms.HexBox.xml dh_clean hexbox.zip hexbox.tree rm -rf monodocer