Makefile revision 1.4
1# $NetBSD: Makefile,v 1.4 2021/08/08 00:02:02 rillig Exp $ 2 3NOMAN= yes 4 5.include <bsd.own.mk> 6 7TESTSDIR= ${TESTSBASE}/usr.bin/xlint/lint2 8 9TESTS_SH= t_lint2 10 11FILESDIR= ${TESTSDIR} 12 13.for msg in \ 14 000 001 002 003 004 005 006 007 008 009 \ 15 010 011 012 013 014 015 016 017 018 16TESTS+= msg_${msg} 17.endfor 18TESTS+= read 19.if ${MACHINE_ARCH:M*64} # close enough to "is a 64-bit platform" 20TESTS+= read_lp64 21.endif 22TESTS+= read_printf 23 24FILES+= ${TESTS:=.ln} ${TESTS:=.exp} 25 26# Note: only works for adding tests. 27# To remove a test, the $$mi file must be edited manually. 28sync-mi: .PHONY 29 @set -eu; \ 30 cd "${MAKEFILE:tA:H}/../../../.."; \ 31 mi="distrib/sets/lists/tests/mi"; \ 32 cvs update "$$mi"; \ 33 fmt="./usr/tests/usr.bin/xlint/lint2/%s\ttests-usr.bin-tests\tcompattestfile,atf\n"; \ 34 cat "$$mi" > "$$mi.tmp"; \ 35 printf "$$fmt" ${FILES} >> "$$mi.tmp"; \ 36 distrib/sets/fmt-list "$$mi.tmp"; \ 37 mv "$$mi.tmp" "$$mi"; \ 38 cvs diff "$$mi" || true 39 40.include <bsd.test.mk> 41