xref: /linux/tools/testing/selftests/lkdtm/Makefile (revision af9f3f31f6cc8e3f637f19189e83d99f3fdd96ad)
1# SPDX-License-Identifier: GPL-2.0
2# Makefile for LKDTM regression tests
3
4include ../lib.mk
5
6# NOTE: $(OUTPUT) won't get default value if used before lib.mk
7TEST_FILES := tests.txt
8TEST_PROGS := stack-entropy.sh
9TEST_GEN_PROGS = $(patsubst %,$(OUTPUT)/%.sh,$(shell awk '{print $$1}' tests.txt | sed -e 's/\#//'))
10all: $(TEST_GEN_PROGS)
11
12$(OUTPUT)/%: run.sh tests.txt
13	install -m 0744 run.sh $@
14