]> Shamusworld >> Repos - architektonas/blob - Makefile
Refactored CAD tool bars to use predefined actions.
[architektonas] / Makefile
1 # Makefile for Architektonas
2 #
3 # by James Hammons
4 # (C) 2010 Underground Software
5
6 # users home dir:
7 #INSTALLDIR = $(HOME)/local
8
9 FIND = find
10
11 all: prepare architektonas
12         @echo -e "\033[01;33m***\033[00;32m Success!\033[00m"
13
14 prepare:
15         @echo -e "\033[01;33m***\033[00;32m Preparing to compile Architektonas...\033[00m"
16
17 architektonas: sources libs makefile-qt
18         @echo -e "\033[01;33m***\033[00;32m Making Architektonas...\033[00m"
19         $(MAKE) -f makefile-qt
20
21 makefile-qt: architektonas.pro
22         @echo -e "\033[01;33m***\033[00;32m Creating Qt makefile...\033[00m"
23         qmake architektonas.pro -o makefile-qt
24
25 libs: dxflib/lib/libdxf.a fparser/lib/libfparser.a
26 #       @echo -e "\033[01;33m***\033[00;32m Making dxflib & fparser...\033[00m"
27 #       $(MAKE) -C dxflib
28 #       $(MAKE) -C fparser
29
30 dxflib/lib/libdxf.a:
31         @echo -e "\033[01;33m***\033[00;32m Making dxflib...\033[00m"
32         $(MAKE) -C dxflib
33
34 fparser/lib/libfparser.a:
35         @echo -e "\033[01;33m***\033[00;32m Making fparser...\033[00m"
36         $(MAKE) -C fparser
37
38 sources: src/mainapp/*.h src/actions/*.h src/base/*.h src/widgets/*.h src/forms/*.h src/mainapp/*.cpp src/actions/*.cpp src/base/*.cpp src/widgets/*.cpp src/forms/*.cpp
39
40 clean:
41         @echo -ne "\033[01;33m***\033[00;32m Cleaning out the garbage...\033[00m"
42         $(MAKE) -C dxflib clean
43         $(MAKE) -C fparser clean
44         $(MAKE) -f makefile-qt clean
45         -rm architektonas
46         -$(FIND) . -name "*~" -exec rm -f {} \;
47         @echo "done!"
48
49 #docu:
50 #       -(doxygen ./doxygen.cfg)
51
52 statistics:
53         @echo -n "Lines in source files: "
54         @-$(FIND) -name *.cpp | xargs cat | wc -l
55         @echo -n "Lines in header files: "
56         @-$(FIND) -name *.h | xargs cat | wc -l
57
58 dist:   clean