#!/usr/bin/make -f # Set temporary HOME for lazarus primary config directory export HOME=$(CURDIR)/tmphome ROOT = $(CURDIR)/debian/xtactics override_dh_auto_clean: $(RM) -r lib $(RM) lib *.res xtactics override_dh_auto_build: lazbuild --build-mode=Release xtactics.lpi override_dh_auto_install: install -Dm755 xtactics -t $(ROOT)/usr/bin install -Dm644 Languages/*.po -t $(ROOT)/usr/share/xtactics/Languages install -Dm644 Packages/Common/Languages/*.po -t $(ROOT)/usr/share/xtactics/Languages install -Dm644 Packages/CoolStreaming/Languages/*.po -t $(ROOT)/usr/share/xtactics/Languages install -Dm644 Images/Maps/*.png -t $(ROOT)/usr/share/xtactics/Images/Maps install -Dm644 Systems/*.xts -t $(ROOT)/usr/share/xtactics/Systems install -Dm644 Install/deb/xtactics.desktop -t $(ROOT)/usr/share/applications install -Dm644 Install/deb/xtactics.xml -t $(ROOT)/usr/share/mime/packages install -Dm644 Images/256x256/xtactics.png -t $(ROOT)/usr/share/pixmaps install -Dm644 Images/256x256/xtactics.png $(ROOT)/usr/share/pixmaps/application-xtg.png install -Dm644 Images/256x256/xtactics.png $(ROOT)/usr/share/pixmaps/application-xts.png %: dh $@