-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
64 lines (57 loc) · 2.01 KB
/
Makefile.in
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
# Copyright 2009 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
MOD_NAME="mod_sitemap.@[email protected]"
DAEMON_NAME="sitemap-daemon"
INSTALL_DIR="sitemap-install"
.PHONY: all
all:
$(MAKE) -C third_party/zlib all
$(MAKE) -C third_party/tinyxml all
$(MAKE) -C third_party/md5 all
$(MAKE) -C src/common all
$(MAKE) -C src/apache_module all
$(MAKE) -C src/sitemapservice all
$(MAKE) -C src/admin_console_cgi all
.PHONY: clean
clean:
$(MAKE) -C third_party/zlib clean
$(MAKE) -C third_party/tinyxml clean
$(MAKE) -C third_party/md5 clean
$(MAKE) -C src/common clean
$(MAKE) -C src/apache_module clean
$(MAKE) -C src/sitemapservice clean
$(MAKE) -C src/admin_console_cgi clean
@rm -rf $(INSTALL_DIR)
.PHONY: distclean
distclean: clean
rm -f configure Makefile config.status config.cache config.log
rm -f third_party/zlib/Makefile third_party/tinyxml/Makefile
rm -f third_party/md5/Makefile
rm -f src/common/Makefile src/apache_module/Makefile
rm -f src/sitemapservice/Makefile
rm -f src/admin_console_cgi/Makefile
.PHONY: installer
installer: all
@rm -rf $(INSTALL_DIR)
@mkdir -p $(INSTALL_DIR)
@cp -f src/linux_install/* $(INSTALL_DIR)
@cp -f src/sitemapservice/sitemap-daemon $(INSTALL_DIR)/$(DAEMON_NAME)
@cp -f src/admin_console_cgi/admin-console-cgi $(INSTALL_DIR)
@cp -f src/apache_module/mod_sitemap.so $(INSTALL_DIR)/$(MOD_NAME)
@cp -f -R src/sitemapservice/admin-console $(INSTALL_DIR)
@chmod -R a+rwx $(INSTALL_DIR)
@chmod a+rx .
.PHONY: install
install: installer
sudo $(INSTALL_DIR)/install.sh