summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndy Shevchenko <ext-andriy.shevchenko@nokia.com>2011-04-07 16:10:38 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-07 16:39:01 +0300
commit2fd3de12b9afbb22adc0fe808312ca4e142dd459 (patch)
treecc5ca90bcb50234884233508da187b423cb8d929 /Makefile
parenta70811466de2c4c0c3a538e5e04a4dd1a8fbcc03 (diff)
Makefile: introduce new target tests in Makefile
This patch appends Makefile to the tests subdirectory and introduces tests target in the root Makefile. Additionally the clean target removes temporary stuff under tests subdirectory as well. Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7ab9743..1f264e9 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ ifeq ($(WITHOUT_XATTR), 1)
endif
SUBDIRS = lib ubi-utils mkfs.ubifs
+TESTS = tests
TARGETS = ftl_format flash_erase nanddump doc_loadbios \
ftl_check mkfs.jffs2 flash_lock flash_unlock flash_info \
@@ -38,6 +39,7 @@ ifneq ($(BUILDDIR),$(CURDIR))
endif
endif
endif
+ $(MAKE) -C $(TESTS) clean
$(SYMLINKS):
ln -sf ../fs/jffs2/$@ $@
@@ -59,3 +61,6 @@ install:: ${TARGETS} ${SCRIPTS}
install -m 0755 ${TARGETS} ${SCRIPTS} ${DESTDIR}/${SBINDIR}/
mkdir -p ${DESTDIR}/${MANDIR}/man1
gzip -9c mkfs.jffs2.1 > ${DESTDIR}/${MANDIR}/man1/mkfs.jffs2.1.gz
+
+tests::
+ $(MAKE) -C $(TESTS)