summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2018-02-26 14:09:46 -0800
committerYann Collet <cyan@fb.com>2018-02-26 14:09:46 -0800
commit0ddd1ceb1db0f3a40a5231d52f59d25ceacd6480 (patch)
treeeea9fd520fe873f7925151c3f3c61e3f593a8f39 /Makefile
parent39fda9a447d4dd51f395c5d94f9b63c7aec9b68b (diff)
downloadlz4-0ddd1ceb1db0f3a40a5231d52f59d25ceacd6480.tar.gz
lz4-0ddd1ceb1db0f3a40a5231d52f59d25ceacd6480.tar.bz2
lz4-0ddd1ceb1db0f3a40a5231d52f59d25ceacd6480.zip
added target make check
according to GNU Makefile conventions, the Makefile should feature a make check target to self-test the generated program: https://www.gnu.org/prep/standards/html_node/Standard-Targets.html . this is much less thorough and less taxing than `make test`, and can be run on any target in a reasonable timeframe (several seconds).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 83320fa..8a7d155 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,8 @@
# ################################################################
# LZ4 - Makefile
-# Copyright (C) Yann Collet 2011-2016
+# Copyright (C) Yann Collet 2011-present
# All rights reserved.
#
-# This Makefile is validated for Linux, macOS, *BSD, Hurd, Solaris, MSYS2 targets
-#
# BSD license
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
@@ -122,6 +120,10 @@ ifneq (,$(filter $(HOST_OS),MSYS POSIX))
list:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs
+.PHONY: check
+check:
+ $(MAKE) -C $(TESTDIR) test-lz4-essentials
+
.PHONY: test
test:
$(MAKE) -C $(TESTDIR) $@