Permission changes
[klaudia.git] / Makefile
blob2def76aae91cc6daa50cc843d7d4c52d90ac0f72
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 755 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 755 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/