Make table row count start at 0.
[fltk_mvc_template.git] / _template / Makefile
1 ############################################################################
2 # Workfile: Makefile
3 # Author: Daniel Giritzer, S1810567004 (daniel@giritzer.eu)
4 # Date: 03.12.2018
5 # Description: Universal Makefile for Unix based Operating Systems
6 ############################################################################
7 WORKDIR = $(shell pwd)
8
9 all: fltk tinyxml _template linux_package windows_package
10
11 fltk:
12         cd $(WORKDIR)/packages/fltk; \
13         make
14
15 tinyxml:
16         cd $(WORKDIR)/packages/tinyxml; \
17         make
18
19 _template:
20         cd $(WORKDIR)/src; \
21         make
22
23 clean_fltk:
24         cd $(WORKDIR)/packages/fltk; \
25         make clean
26
27 clean_tinyxml:
28         cd $(WORKDIR)/packages/tinyxml; \
29         make clean
30
31 clean__template:
32         cd $(WORKDIR)/src; \
33         make clean
34
35 clean_lib:
36         rm -rf $(WORKDIR)/lib/
37         rm -rf $(WORKDIR)/include/tinyxml2.h
38         rm -rf $(WORKDIR)/include/FL
39         rm -rf $(WORKDIR)/install_package/
40
41 linux_package:
42         mkdir -p $(WORKDIR)/install_package/linux/lib
43         mkdir -p $(WORKDIR)/install_package/linux/bin
44         $(WORKDIR)/scripts/copydeps.sh $(WORKDIR)/src/bin/Release_Linux/_template $(WORKDIR)/install_package/linux/lib
45         cp $(WORKDIR)/src/bin/Release_Linux/_template $(WORKDIR)/install_package/linux/bin
46         cp $(WORKDIR)/src/start__template $(WORKDIR)/install_package/linux/
47         cp $(WORKDIR)/src/start__template.desktop $(WORKDIR)/install_package/linux/
48         cp $(WORKDIR)/src/Icon.png $(WORKDIR)/install_package/linux/
49         tar -zcvf $(WORKDIR)/install_package/install_linux -C $(WORKDIR)/install_package/linux/ .
50         $(WORKDIR)/scripts/gen_package_linux.sh $(WORKDIR)/install_package/install_linux
51         rm $(WORKDIR)/install_package/install_linux 
52
53 windows_package:
54         mkdir -p $(WORKDIR)/install_package/windows/
55         cp $(WORKDIR)/src/bin/Release_Windows/_template.exe $(WORKDIR)/install_package/windows/
56         cd $(WORKDIR)/scripts/; \
57         ./gen_package_windows.sh $(WORKDIR)/install_package/windows/*; \
58         mv ./*.exe $(WORKDIR)/install_package/install_windows.exe
59
60
61 clean: clean_lib clean__template clean_fltk clean_tinyxml