root/tags/omega-1.0.0-rc4/Makefile.fedora

Revision 1050, 2.4 kB (checked in by rats, 9 months ago)

Fixed #1106: BSDmakefile Setup not copy some of its file & Updated: a lot of Makefiles

Line 
1 #!/usr/bin/make -f
2 #
3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel
4 # Copyright (c) 2001-2006 by moleSoftware GmbH
5 # http://www.molesoftware.com
6 # Copyright (c) 2006-2008 by isp Control Panel
7 # http://isp-control.net
8 #
9 #
10 # License:
11 #    This program is free software; you can redistribute it and/or
12 #    modify it under the terms of the MPL Mozilla Public License
13 #    as published by the Free Software Foundation; either version 1.1
14 #    of the License, or (at your option) any later version.
15 #
16 #    This program is distributed in the hope that it will be useful,
17 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
18 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 #    MPL Mozilla Public License for more details.
20 #
21 #    You may have received a copy of the MPL Mozilla Public License
22 #    along with this program.
23 #
24 #    An on-line copy of the MPL Mozilla Public License can be found
25 #    http://www.mozilla.org/MPL/MPL-1.1.html
26 #
27 #
28 # The ispCP ω Home Page is at:
29 #
30 #    http://isp-control.net
31
32
33 ifndef INST_PREF
34         INST_PREF=/tmp/ispcp
35 endif
36
37 HOST_OS=fedora
38
39 ROOT_CONF=$(INST_PREF)/etc
40
41 SYSTEM_ROOT=$(INST_PREF)/var/www/ispcp
42 SYSTEM_CONF=$(INST_PREF)/etc/ispcp
43 SYSTEM_LOG=$(INST_PREF)/var/log/ispcp
44 SYSTEM_APACHE_BACK_LOG=$(INST_PREF)/var/log/httpd/backup
45 SYSTEM_VIRTUAL=$(INST_PREF)/var/www/virtual
46 SYSTEM_AWSTATS=$(INST_PREF)/var/www/awstats
47 SYSTEM_FCGI=$(INST_PREF)/var/www/fcgi
48 SYSTEM_MAIL_VIRTUAL=$(INST_PREF)/var/mail/virtual
49 SYSTEM_MAKE_DIRS=/bin/mkdir -p
50
51 export
52
53
54 install:
55
56         cd ./tools && $(MAKE) install
57
58         $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)
59         $(SYSTEM_MAKE_DIRS) $(SYSTEM_ROOT)
60         $(SYSTEM_MAKE_DIRS) $(SYSTEM_LOG)
61         $(SYSTEM_MAKE_DIRS) $(SYSTEM_LOG)/ispcp-arpl-msgr
62         $(SYSTEM_MAKE_DIRS) $(SYSTEM_VIRTUAL)
63         $(SYSTEM_MAKE_DIRS) $(SYSTEM_FCGI)
64         $(SYSTEM_MAKE_DIRS) $(SYSTEM_AWSTATS)
65         $(SYSTEM_MAKE_DIRS) $(SYSTEM_MAIL_VIRTUAL)
66         $(SYSTEM_MAKE_DIRS) $(SYSTEM_APACHE_BACK_LOG)
67
68         cd ./configs && $(MAKE) install
69         cd ./engine && $(MAKE) install
70         cd ./gui && $(MAKE) install
71         cd ./keys && $(MAKE) install
72
73
74 uninstall:
75
76         cd ./tools && $(MAKE) uninstall
77         cd ./configs && $(MAKE) uninstall
78         cd ./engine && $(MAKE) uninstall
79         cd ./gui && $(MAKE) uninstall
80         cd ./keys && $(MAKE) uninstall
81
82         rm -rf $(SYSTEM_CONF)
83         rm -rf $(SYSTEM_ROOT)
84         rm -rf $(SYSTEM_LOG)
85         rm -rf $(SYSTEM_VIRTUAL)
86         rm -rf $(SYSTEM_FCGI)
87         rm -rf $(SYSTEM_MAIL_VIRTUAL)
88         rm -rf $(SYSTEM_APACHE_BACK_LOG)
89         rm -rf ./*~
90
91
92 clean:
93
94         cd ./tools/daemon && $(MAKE) clean
95
96 .PHONY: install uninstall clean
Note: See TracBrowser for help on using the browser.