-
Notifications
You must be signed in to change notification settings - Fork 74
/
Makefile.am
171 lines (132 loc) · 6.5 KB
/
Makefile.am
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# A quick search didn't show the right config macro, I'm sure it is out there...
TAR=tar
EXCLUDE_DIRS=grep -E -v ".*/$$"
confdir=$(prefix)/conf
plugindir=$(prefix)/plugins
always:
# Don't try to build these, the old makefile will do it.
bin/hoot:
bin/hoot.bin:
osmapidb:
$(MAKE) -f Makefile.old osmapidb
archive:
$(MAKE) -f Makefile.old dist
clean-db:
$(MAKE) -f Makefile.old clean-db
clean-all:
$(MAKE) -f Makefile.old clean-all
clean-coverage:
$(MAKE) -f Makefile.old clean-coverage
coverage:
$(MAKE) -f Makefile.old coverage
core-coverage:
$(MAKE) -f Makefile.old core-coverage
eclipse:
$(MAKE) -f Makefile.old eclipse
licenses:
$(MAKE) -f Makefile.old licenses
docs: always
$(MAKE) -f Makefile.old docs
requirements:
cd docs; $(MAKE) requirements
tmp/schema.png:
$(MAKE) -f Makefile.old tmp/schema.png
help:
@echo "help - This help message."
@echo "archive - Make a distributable tarball."
@echo "build - Build all source and populated/upgrade the DB if necessary."
@echo "check - Run all the tests that should be run before commit."
@echo "clean - Clean out all binaries. This will not modify the DB."
@echo "clean-all - Clean out all binaries and remove all tables from the DB defined in liquibase.properties"
@echo "clean-coverage - Remove all test code coverage report output."
@echo "clean-db - Remove all tables from the DB defined in liquibase.properties"
@echo "core-coverage - If configured '--with-coverage', then creates coverage reports for the core."
@echo "coverage - If configured '--with-coverage', then creates test coverage reports."
@echo "docs - Build all project documentation."
@echo "dist - Make a distributable tarball."
@echo "eclipse - If configured '--with-services', then, builds Eclipse IDE project files."
@echo "osmapidb - If configured '--with-services', then builds a clean copy of an OSM API database."
@echo "plugins-test - Run the mocha plugins tests. Should take less than five minutes."
@echo "services-build - If configured '--with-services', then builds just the web services source."
@echo "services-clean - If configured '--with-services', then cleans just the web services binaries. This will not modify the DB."
@echo "services-clean-coverage - If configured '--with-services', then removes just the web services test code coverage report output."
@echo "services-coverage - If configured '--with-services' and '--with-coverage', then creates just the web services coverage report."
@echo "services-docs - If configure '--with-services', then builds just the web services documentation."
@echo "services-test - If configure '--with-services', then runs the web services slow tests. Should take five to ten minutes."
@echo "services-test-all - If configure '--with-services', then runs the web services glacial tests. Should take five to ten minutes."
@echo "test - Run slow tests. Should take no more than five to ten minutes."
@echo "test-all - Run all tests. Could take more than ten minutes."
@echo "test-quick - Run quick tests. Should take less than five minutes."
@echo "ui-build - Build the web UI js/css dist. Must enable --with-services configuration options."
@echo "ui-test - Run user interface tests. May take several minutes. Must enable --with-uitests and --with-services configuration options."
@echo "ui-coverage - Generate coverage reports for mocha and cucumber user interface tests. May take several minutes. Must enable --with-uitests and --with-services configuration options."
@echo "ui-clean-coverage - Removes the coverage reports for mocha and cucumber user interface tests."
test:
scripts/HootEnv.sh $(MAKE) -f Makefile.old test
test-all:
scripts/HootEnv.sh $(MAKE) -f Makefile.old test-all
test-all-no-core:
scripts/HootEnv.sh $(MAKE) -f Makefile.old test-all-no-core
test-all-core:
scripts/HootEnv.sh $(MAKE) -f Makefile.old test-all-core
test-quick:
scripts/HootEnv.sh $(MAKE) -f Makefile.old test-quick
services-test:
scripts/HootEnv.sh $(MAKE) -f Makefile.old services-test
services-test-all:
scripts/HootEnv.sh $(MAKE) -f Makefile.old services-test-all
ui-build:
scripts/HootEnv.sh $(MAKE) -f Makefile.old ui-build
ui-test:
scripts/HootEnv.sh $(MAKE) -f Makefile.old ui-test
ui-coverage:
scripts/HootEnv.sh $(MAKE) -f Makefile.old ui-coverage
ui-clean-coverage:
scripts/HootEnv.sh $(MAKE) -f Makefile.old ui-clean-coverage
plugins-test:
scripts/HootEnv.sh $(MAKE) -f Makefile.old plugins-test
services-build:
$(MAKE) -f Makefile.old services-build
services-docs:
$(MAKE) -f Makefile.old services-docs
services-clean:
$(MAKE) -f Makefile.old services-clean
services-clean-db:
$(MAKE) -f Makefile.old services-clean-db
services-clean-coverage:
$(MAKE) -f Makefile.old services-clean-coverage
services-coverage:
$(MAKE) -f Makefile.old services-coverage
# Use some tar fanciness to grab all the files in conf, plugins, translations and scripts
install-other:
mkdir -p tmp
$(TAR) cf tmp/other.tar conf plugins scripts translations rules
mkdir -p $(localstatedir)
cat tmp/other.tar | $(TAR) xv -C $(localstatedir)
rm -f tmp/other.tar
mkdir -p $(docdir)
cp INSTALL LICENSE AUTHORS COPYING GPLv3 README* docs/*.pdf $(docdir)
mkdir -p $(sysconfdir)/profile.d/
mkdir -p $(sysconfdir)/asciidoc/filters/
cp -R docs/filters/* $(sysconfdir)/asciidoc/filters/
echo "export HOOT_HOME=$(localstatedir)" > $(sysconfdir)/profile.d/hootenanny.sh
mkdir -p $(includedir)
export HOOT_HOME=`pwd`; \
cd $$HOOT_HOME/hoot-core/src/main/cpp/; \
(find . -name '*.h' -print | tar --create --files-from -) | (cd $(includedir) && tar xvfp -); \
cd $$HOOT_HOME/hoot-js/src/main/cpp; \
(find . -name '*.h' -print | tar --create --files-from -) | (cd $(includedir) && tar xvfp -); \
cd $$HOOT_HOME/hoot-rnd/src/main/cpp/; \
(find . -name '*.h' -print | tar --create --files-from -) | (cd $(includedir) && tar xvfp -)
install-data-local: install-other
install-exec-local:
mkdir -p $(bindir) $(libdir) $(confdir)
$(INSTALL) bin/* $(bindir)
rm $(bindir)/HootEnv.sh
mkdir -p $(localstatedir)/bin/
cp bin/HootEnv.sh $(localstatedir)/bin/
cp -l $(localstatedir)/bin/HootEnv.sh $(bindir)
cp -a lib/* $(libdir)
# Clean out all install files and then remove the empty directories.
uninstall-local:
SUBDIRS=stub