1 | #!/usr/bin/make -f
|
---|
2 |
|
---|
3 | # Set temporary HOME for lazarus primary config directory
|
---|
4 | export HOME=$(CURDIR)/tmphome
|
---|
5 |
|
---|
6 | ROOT = $(CURDIR)/debian/xtactics
|
---|
7 |
|
---|
8 | override_dh_auto_clean:
|
---|
9 | $(RM) -r lib
|
---|
10 | $(RM) lib *.res xtactics
|
---|
11 |
|
---|
12 | override_dh_auto_build:
|
---|
13 | lazbuild --build-mode=Release xtactics.lpi
|
---|
14 |
|
---|
15 | override_dh_auto_install:
|
---|
16 | install -d -m 755 $(ROOT)/usr/bin
|
---|
17 | install -s -m 755 xtactics $(ROOT)/usr/bin
|
---|
18 | install -d -m 755 $(ROOT)/usr/share/xtactics/Languages
|
---|
19 | install -m 644 Languages/xtactics.pot $(ROOT)/usr/share/xtactics/Languages
|
---|
20 | install -m 644 Languages/xtactics.cs.po $(ROOT)/usr/share/xtactics/Languages
|
---|
21 | install -m 644 Languages/lclstrconsts.pot $(ROOT)/usr/share/xtactics/Languages
|
---|
22 | install -m 644 Languages/lclstrconsts.cs.po $(ROOT)/usr/share/xtactics/Languages
|
---|
23 | install -m 644 Languages/UFormAbout.pot $(ROOT)/usr/share/xtactics/Languages
|
---|
24 | install -m 644 Languages/UFormAbout.cs.po $(ROOT)/usr/share/xtactics/Languages
|
---|
25 | install -d -m 755 $(ROOT)/usr/share/xtactics/images/maps
|
---|
26 | install -m 644 Images/Maps/Europe.png $(ROOT)/usr/share/xtactics/images/maps
|
---|
27 | install -m 644 Images/Maps/WorldMap.png $(ROOT)/usr/share/xtactics/images/maps
|
---|
28 | install -d -m 755 $(ROOT)/usr/share/applications
|
---|
29 | install -m 755 Install/deb/xtactics.desktop $(ROOT)/usr/share/applications
|
---|
30 | install -d -m 755 $(ROOT)/usr/share/mime/packages
|
---|
31 | install -m 644 Install/deb/xtactics.xml $(ROOT)/usr/share/mime/packages
|
---|
32 | install -d -m 755 $(ROOT)/usr/share/pixmaps
|
---|
33 | install -m 644 Images/64x64/xtactics.png $(ROOT)/usr/share/pixmaps
|
---|
34 | install -m 644 Images/64x64/xtactics.png $(ROOT)/usr/share/pixmaps/application-xtg.png
|
---|
35 | install -m 644 Images/64x64/xtactics.png $(ROOT)/usr/share/pixmaps/application-xts.png
|
---|
36 |
|
---|
37 | %:
|
---|
38 | dh $@
|
---|