Makefile

changeset 287
99bcd7915a0d
parent 259
6c8d5f8a1d6f
child 407
9505224d2fd2
equal deleted inserted replaced
286:8dc2952dd5dc 287:99bcd7915a0d
38 38
39 CONF=gcc 39 CONF=gcc
40 PREFIX=/usr 40 PREFIX=/usr
41 41
42 include $(CONF).mk 42 include $(CONF).mk
43 include cppcheck.mk
43 44
44 all: build/tool build/ucx build/libidav build/test ucx libidav dav test 45 all: build/tool build/ucx build/libidav build/test ucx libidav dav test
46
47 build:
48 mkdir -p build
45 49
46 build/tool: 50 build/tool:
47 mkdir -p build/tool 51 mkdir -p build/tool
48 52
49 build/ucx: 53 build/ucx:
77 @echo "install to $(DESTDIR)$(PREFIX)" 81 @echo "install to $(DESTDIR)$(PREFIX)"
78 ./install-sh -d $(DESTDIR)$(PREFIX)/bin 82 ./install-sh -d $(DESTDIR)$(PREFIX)/bin
79 ./install-sh build/dav $(DESTDIR)$(PREFIX)/bin 83 ./install-sh build/dav $(DESTDIR)$(PREFIX)/bin
80 ./install-sh build/dav-sync $(DESTDIR)$(PREFIX)/bin 84 ./install-sh build/dav-sync $(DESTDIR)$(PREFIX)/bin
81 85
86 cppcheck: FORCE build
87 truncate -s0 $(CPPCHECK_LOG)
88 cd libidav; $(MAKE) cppcheck
89 cd dav; $(MAKE) cppcheck
90 @echo "Static code analysis complete. See $(CPPCHECK_LOG) for the results."
91
82 FORCE: 92 FORCE:
83 93

mercurial