mirror of
https://github.com/uffejakobsen/acme.git
synced 2024-11-22 18:32:09 +00:00
22 lines
382 B
Makefile
22 lines
382 B
Makefile
|
ACMEFLAGS = -v0
|
||
|
FILES := $(wildcard *.a)
|
||
|
FAILTESTS = $(subst .a,.fail,$(FILES))
|
||
|
SUCCTESTS = $(subst .a,.succ,$(FILES))
|
||
|
|
||
|
.SILENT:
|
||
|
|
||
|
%.fail: %.a
|
||
|
echo "Testing warning with --strict:" $<
|
||
|
! acme $(ACMEFLAGS) --strict $<
|
||
|
echo "Ok."
|
||
|
|
||
|
%.succ: %.a
|
||
|
echo "Testing warning:" $<
|
||
|
acme $(ACMEFLAGS) $<
|
||
|
echo "Ok."
|
||
|
|
||
|
all: $(FAILTESTS) $(SUCCTESTS)
|
||
|
echo
|
||
|
echo "Testing warnings: PASSED"
|
||
|
echo
|