xref: /linux-6.15/tools/testing/selftests/exec/Makefile (revision b2441318)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1*b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2c9b26b81SDavid DrysdaleCFLAGS = -Wall
3c9b26b81SDavid Drysdale
480d443e8S[email protected]TEST_GEN_PROGS := execveat
580d443e8S[email protected]TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir
680d443e8S[email protected]# Makefile is a run-time dependency, since it's accessed by the execveat test
780d443e8S[email protected]TEST_FILES := Makefile
880d443e8S[email protected]
9a8ba798bS[email protected]EXTRA_CLEAN := $(OUTPUT)/subdir.moved $(OUTPUT)/execveat.moved $(OUTPUT)/xxxxx*
1080d443e8S[email protected]
1180d443e8S[email protected]include ../lib.mk
1280d443e8S[email protected]
13a8ba798bS[email protected]$(OUTPUT)/subdir:
14c9b26b81SDavid Drysdale	mkdir -p $@
15a8ba798bS[email protected]$(OUTPUT)/script:
16c9b26b81SDavid Drysdale	echo '#!/bin/sh' > $@
17c9b26b81SDavid Drysdale	echo 'exit $$*' >> $@
18c9b26b81SDavid Drysdale	chmod +x $@
19a8ba798bS[email protected]$(OUTPUT)/execveat.symlink: $(OUTPUT)/execveat
20a8ba798bS[email protected]	cd $(OUTPUT) && ln -s -f $(shell basename $<) $(shell basename $@)
21a8ba798bS[email protected]$(OUTPUT)/execveat.denatured: $(OUTPUT)/execveat
22c9b26b81SDavid Drysdale	cp $< $@
23c9b26b81SDavid Drysdale	chmod -x $@
24a8ba798bS[email protected]
25

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026