prefix = /usr/local
bindir = $(prefix)/bin
INSTALL = install

tl-append:

%: %.c
	$(CC) -Wall -Wextra -pedantic -o $@ $^

.PHONY: check
check: tl-append tl-append-test
	./tl-append-test

.PHONY: install
install: tl-append
	$(INSTALL) -d $(DESTDIR)$(bindir)
	$(INSTALL) -m 755 $^ $(DESTDIR)$(bindir)