#!/usr/bin/make -f # Set temporary HOME for lazarus primary config directory export HOME=$(CURDIR)/tmphome ROOT = $(CURDIR)/debian/lazfuck override_dh_auto_clean: $(RM) -r lib $(RM) lib *.res LazFuck override_dh_auto_build: lazbuild --build-mode=Release LazFuck.lpi override_dh_auto_install: install -d -m 755 $(ROOT)/usr/bin install -s -m 755 LazFuck $(ROOT)/usr/bin install -d -m 755 $(ROOT)/usr/share/LazFuck/Languages install -D -m 755 Languages/* $(ROOT)/usr/share/LazFuck/Languages install -d -m 755 $(ROOT)/usr/share/LazFuck/Examples/Others install -D -m 644 Examples/Others/* $(ROOT)/usr/share/LazFuck/Examples/Others install -d -m 755 $(ROOT)/usr/share/LazFuck/Examples/Self-interpreters install -D -m 644 Examples/Self-interpreters/* $(ROOT)/usr/share/LazFuck/Examples/Self-interpreters install -d -m 755 $(ROOT)/usr/share/LazFuck/Examples @install -D -m 644 Examples/* $(ROOT)/usr/share/LazFuck/Examples || true install -d -m 755 $(ROOT)/usr/share/applications install -m 755 Install/deb/LazFuck.desktop $(ROOT)/usr/share/applications install -d -m 755 $(ROOT)/usr/share/mime/packages install -m 644 Install/deb/LazFuck.xml $(ROOT)/usr/share/mime/packages install -d -m 755 $(ROOT)/usr/share/pixmaps install -m 644 Images/64x64/LazFuck.png $(ROOT)/usr/share/pixmaps %: dh $@