added 'test' rule in Makefile

This commit is contained in:
eric 2022-07-26 19:40:04 +02:00
parent 7bf2af6c2b
commit 486346d08e

View File

@ -18,7 +18,7 @@ endif
default: $(SRC)
$(CC) $(CFLAGS) $(LDFLAGS) $(SRC) -o $(PROG)
.PHONY: debug clean install
.PHONY: debug clean install test
install:
test -d $(PREFIX)/bin || mkdir -p $(PREFIX)/bin
@ -34,3 +34,5 @@ debug: $(SRC)
clean:
rm -rf $(PROG) $(PROG).dSYM
test: $(PROG)
for i in fonts/*.tdf; do echo $$i; ./tdfiglet -f $$i -jc Test; done | less -R