Database: Prepare for PPA changes
[klaudia.git] / Makefile
blob18e35070f3b634e69a0ca6dd0aaad6963654704b
1 #!/usr/bin/make -f
2 # Makefile for Klaudia #
3 # ---------------------- #
4 # Created by falkTX
7 DESTDIR =
10 all: build
12 build:
13 # Generate python code from QtDesigner UI files
14 pyuic4 -o ./src/ui_klaudia.py ./src/klaudia.ui
16 clean:
17 rm -f src/ui_*.py src/*.pyc src/*~ *~
19 install:
20 # Make directories
21 install -d $(DESTDIR)/usr/bin/
22 install -d $(DESTDIR)/usr/share/applications/
23 install -d $(DESTDIR)/usr/share/icons/hicolor/16x16/apps/
24 install -d $(DESTDIR)/usr/share/icons/hicolor/32x32/apps/
25 install -d $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/
26 install -d $(DESTDIR)/usr/share/icons/hicolor/128x128/apps/
27 install -d $(DESTDIR)/usr/share/klaudia/src/
28 install -d $(DESTDIR)/usr/share/klaudia/icons/
29 install -d $(DESTDIR)/usr/share/klaudia/templates/
30 # Install files
31 install -m 655 klaudia $(DESTDIR)/usr/bin/
32 install -m 644 klaudia.desktop $(DESTDIR)/usr/share/applications/
33 install -m 644 art/16.png $(DESTDIR)/usr/share/icons/hicolor/16x16/apps/klaudia.png
34 install -m 644 art/32.png $(DESTDIR)/usr/share/icons/hicolor/32x32/apps/klaudia.png
35 install -m 644 art/48.png $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/klaudia.png
36 install -m 644 art/128.png $(DESTDIR)/usr/share/icons/hicolor/128x128/apps/klaudia.png
37 install -m 655 src/*.py $(DESTDIR)/usr/share/klaudia/src/
38 cp -r icons/* $(DESTDIR)/usr/share/klaudia/icons/
39 cp -r templates/* $(DESTDIR)/usr/share/klaudia/templates/