summaryrefslogtreecommitdiff
path: root/regress/bin/systrace/symlink/Makefile
blob: 4eb1f1a6f80c9fbef6aa039d3b164970c5ca6932 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#	$OpenBSD: Makefile,v 1.1 2006/08/10 09:00:20 espie Exp $

REGRESS_TARGETS=symlink1

symlink1:
	rm  -f ${.OBJDIR}/{a,b}
	ln -sf b ${.OBJDIR}/a
	if systrace -ae -f ${.CURDIR}/ln.policy ln -s b ${.OBJDIR}/a; then \
		exit 1; \
	fi
	if test -e ${.OBJDIR}/b; then \
		exit 1; \
	fi

.PHONY: ${REGRESS_TARGETS}

CLEANFILES+=	a b

.include <bsd.regress.mk>