forked from joto/osmium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (42 loc) · 1.71 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
#------------------------------------------------------------------------------
#
# Osmium main makefile
#
#------------------------------------------------------------------------------
all:
clean:
rm -fr doc/html
install: doc
install -m 755 -g root -o root -d $(DESTDIR)/usr/include
install -m 755 -g root -o root -d $(DESTDIR)/usr/share/doc/libosmium-dev
install -m 644 -g root -o root README $(DESTDIR)/usr/share/doc/libosmium-dev/README
install -m 644 -g root -o root include/osmium.hpp $(DESTDIR)/usr/include
cp --recursive include/osmium $(DESTDIR)/usr/include
cp --recursive doc/html $(DESTDIR)/usr/share/doc/libosmium-dev
check:
cppcheck --enable=all -I include */*.cpp test/*/test_*.cpp
# This will try to compile each include file on its own to detect missing
# #include directives. Note that if this reports [OK], it is not enough
# to be sure it will compile in production code. But if it reports [FAILED]
# we know we are missing something.
check-includes:
echo "check includes report:" >check-includes-report; \
for FILE in include/*.hpp include/*/*.hpp include/*/*/*.hpp include/*/*/*/*.hpp; do \
echo "$${FILE}:" >>check-includes-report; \
echo -n "$${FILE} "; \
if `g++ -I include $${FILE} 2>>check-includes-report`; then \
echo "[OK]"; \
else \
echo "[FAILED]"; \
fi; \
rm -f $${FILE}.gch; \
done
indent:
astyle --style=java --indent-namespaces --indent-switches --pad-header --suffix=none --recursive include/\*.hpp examples/\*.cpp examples/\*.hpp osmjs/\*.cpp test/\*.cpp
doc: doc/html/files.html
doc/html/files.html: include/*.hpp include/*/*.hpp include/*/*/*.hpp
doxygen >/dev/null
deb:
debuild -I -us -uc
deb-clean:
debuild clean