-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
74 lines (60 loc) · 2.13 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# ====================================================================
#
# Filename: Makefile
#
# Description: Makefile to compile and execute cc/cpp files in
# src/ folder.
#
# Version: 0.7
# Created: Saturday 16 February 2013 11:15:42 IST
# Compiler: g++
#
# Author: Mandeep Kaur, [email protected]
# License: GNU General Public License
# Copyright: Copyright (c) 2013, Great Developers
#
# ====================================================================
# ====================================================================
# Variables
# ====================================================================
MAKE = make -C frontend
CLEAN = make -C frontend clean
COPY_HOMEPAGE = cp -r BaKaPlan ~/public_html/
COPY_DOC = cp -r doc ~/public_html/BaKaPlan/
DOC = doxygen doxy.conf
COPY = $(COPY_HOMEPAGE) && $(COPY_DOC)
INSTALL = $(COPY)
BP = mkdir ~/public_html/cgi-bin/bp && mkdir ~/public_html/SeatPlan
PERMISSIONS = chmod -R 777 ~/public_html/cgi-bin/bp \
~/public_html/cgi-bin/bakaplan/frontend/input \
~/public_html/cgi-bin/bakaplan/frontend/output \
~/public_html/SeatPlan
# Target Names
T_COPY = copy
T_CLEAN = clean
T_INSTALL = install
T_FRONTEND = front
T_COPY_DOC = copy-doc
T_DOC = Doc
# ====================================================================
# Main target (1st target)
# ====================================================================
all: $(T_FRONTEND)
# ====================================================================
# Targets
# ====================================================================
$(T_INSTALL):
$(INSTALL) && $(BP) && $(PERMISSIONS) && $(MAKE)
$(T_COPY):
$(COPY)
$(T_COPY_DOC):
$(COPY_DOC)
$(T_FRONTEND):
$(MAKE)
$(T_DOC): doxy.conf frontend
$(DOC) && $(COPY_DOC)
# ====================================================================
# Clean .o, .html files
# ====================================================================
$(T_CLEAN):
$(CLEAN)