2007-07-11 21:01:13 +04:00
|
|
|
LEVEL = ../..
|
2009-03-24 06:00:12 +03:00
|
|
|
DIRS := include lib tools docs
|
2007-07-11 21:01:13 +04:00
|
|
|
|
2009-11-15 03:22:33 +03:00
|
|
|
PARALLEL_DIRS :=
|
|
|
|
|
|
|
|
ifeq ($(BUILD_EXAMPLES),1)
|
|
|
|
PARALLEL_DIRS += examples
|
|
|
|
endif
|
|
|
|
|
2007-07-11 21:01:13 +04:00
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
2009-01-21 00:10:41 +03:00
|
|
|
ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
|
2009-12-22 02:28:06 +03:00
|
|
|
$(RecursiveTargets)::
|
2009-01-21 00:10:41 +03:00
|
|
|
$(Verb) if [ ! -f test/Makefile ]; then \
|
|
|
|
$(MKDIR) test; \
|
|
|
|
$(CP) $(PROJ_SRC_DIR)/test/Makefile test/Makefile; \
|
|
|
|
fi
|
|
|
|
endif
|
|
|
|
|
2007-07-11 21:01:13 +04:00
|
|
|
test::
|
2010-03-18 16:56:20 +03:00
|
|
|
@ $(MAKE) -C test
|
2008-03-18 09:14:16 +03:00
|
|
|
|
|
|
|
report::
|
2008-04-07 02:32:01 +04:00
|
|
|
@ $(MAKE) -C test report
|
2007-07-11 21:01:13 +04:00
|
|
|
|
|
|
|
clean::
|
2008-04-07 02:32:01 +04:00
|
|
|
@ $(MAKE) -C test clean
|
2008-03-20 17:28:22 +03:00
|
|
|
|
2009-02-12 05:25:47 +03:00
|
|
|
tags::
|
2010-03-18 16:56:20 +03:00
|
|
|
$(Verb) etags `find . -type f -name '*.h' -or -name '*.cpp' | \
|
|
|
|
grep -v /lib/Headers | grep -v /test/`
|
2009-02-12 05:25:47 +03:00
|
|
|
|
2009-03-18 08:59:14 +03:00
|
|
|
cscope.files:
|
2009-03-24 06:00:12 +03:00
|
|
|
find tools lib include -name '*.cpp' \
|
2009-03-18 08:59:14 +03:00
|
|
|
-or -name '*.def' \
|
|
|
|
-or -name '*.td' \
|
|
|
|
-or -name '*.h' > cscope.files
|
|
|
|
|
|
|
|
.PHONY: test report clean cscope.files
|