More work
[klaudia.git] / Makefile
blob09572be7a6d7d79252bba2a6d834ac6f35858179
1 #!/usr/bin/make -f
2 # Makefile for Klaudia #
3 # ---------------------- #
4 # Created by falkTX
7 PREFIX = /usr/local
8 DESTDIR =
10 all: build
12 build:
13 # Generate python code from QtDesigner UI files
14 pykdeuic4 -o ./src/ui_mainw.py ./ui/mainw.ui
15 pykdeuic4 -o ./src/ui_renderw.py ./ui/renderw.ui
16 pykdeuic4 -o ./src/ui_wizard.py ./ui/wizard.ui
17 pykdeuic4 -o ./src/ui_dia_properties.py ./ui/dia_properties.ui
18 pykdeuic4 -o ./src/ui_dia_studios.py ./ui/dia_studios.ui
19 pykdeuic4 -o ./src/ui_tb_main.py ./ui/tb_main.ui
20 pykdeuic4 -o ./src/ui_tb_apps.py ./ui/tb_apps.ui
21 pykdeuic4 -o ./src/ui_tb_connections.py ./ui/tb_connections.ui
22 pykdeuic4 -o ./src/ui_tb_mixer.py ./ui/tb_mixer.ui
23 # Wizard Hacks (read: bug in KDE)
24 sed "s/from PyKDE4 import kdeui/from PyKDE4 import kdeui, kio/" -i src/ui_wizard.py
25 sed "s/QtGui.KFile/kio.KFile/" -i src/ui_wizard.py
26 # Compile FST
27 make -C fst
28 make -C fst -f Makefile.info
29 # Compile jack-capture
30 make -C jack-capture
31 # Testing
32 mkdir -p bins
33 cp fst/*.exe fst/*.exe.so jack-capture/jack_capture bins
35 distclean: clean
36 rm -rf bins
37 make distclean -C fst
38 make distclean -C fst -f Makefile.info
39 make distclean -C jack-capture
41 clean:
42 rm -f src/ui_*.py src/*.pyc src/*~ *~
43 make clean -C fst
44 make clean -C fst -f Makefile.info
45 make clean -C jack-capture
47 install:
48 # Make directories
49 install -d $(DESTDIR)/$(PREFIX)/bin/
50 install -d $(DESTDIR)/$(PREFIX)/share/applications/
51 install -d $(DESTDIR)/$(PREFIX)/share/pixmaps/
52 install -d $(DESTDIR)/$(PREFIX)/share/klaudia/
53 install -d $(DESTDIR)/$(PREFIX)/share/klaudia/bins/
54 install -d $(DESTDIR)/$(PREFIX)/share/klaudia/src/
55 install -d $(DESTDIR)/$(PREFIX)/share/klaudia/templates/
56 install -d $(DESTDIR)/$(PREFIX)/share/klaudia/templates/Ardour/
57 # Install files
58 install -m 655 klaudia $(DESTDIR)/$(PREFIX)/bin/
59 install -m 644 klaudia.desktop $(DESTDIR)/$(PREFIX)/share/applications/
60 install -m 655 bins/* $(DESTDIR)/$(PREFIX)/share/klaudia/bins/
61 install -m 655 src/*.py src/*.rc $(DESTDIR)/$(PREFIX)/share/klaudia/src/
62 install -m 644 templates/* $(DESTDIR)/$(PREFIX)/share/klaudia/templates/ || true
63 install -m 644 templates/Ardour/* $(DESTDIR)/$(PREFIX)/share/klaudia/templates/Ardour/