Makefile

changeset 246
21bb9849a765
parent 230
4044131874f9
child 250
b7d1317b138e
equal deleted inserted replaced
245:db732f8c083a 246:21bb9849a765
38 38
39 CONF=gcc 39 CONF=gcc
40 PREFIX=/usr/local 40 PREFIX=/usr/local
41 41
42 include $(CONF).mk 42 include $(CONF).mk
43 include cppcheck.mk
43 44
44 all: ucx test 45 all: ucx test
45 46
46 ucx: FORCE 47 ucx: FORCE
47 cd ucx; $(MAKE) CONF=$(CONF) 48 cd ucx; $(MAKE) CONF=$(CONF)
79 $(DESTDIR)$(PREFIX)/include/ucx: 80 $(DESTDIR)$(PREFIX)/include/ucx:
80 mkdir -p $@ 81 mkdir -p $@
81 82
82 clean: FORCE 83 clean: FORCE
83 $(RM) $(RMFLAGS) build 84 $(RM) $(RMFLAGS) build
85
86 build:
87 mkdir -p build
88
89 cppcheck: FORCE build
90 truncate -s0 $(CPPCHECK_LOG)
91 cd ucx; $(MAKE) CONF=$(CONF) cppcheck
92 @echo "Static code analysis complete. See $(CPPCHECK_LOG) for the results."
84 93
85 FORCE: 94 FORCE:
86 95

mercurial