]>
Commit | Line | Data |
---|---|---|
b3d5ed96 SW |
1 | prefix = /usr/local |
2 | bindir = $(prefix)/bin | |
3 | INSTALL = install | |
4 | ||
5 | tl-append: | |
6 | ||
7 | %: %.c | |
71a7e5c5 | 8 | $(CC) -Wall -Wextra -pedantic -std=c99 -o $@ $^ |
b3d5ed96 SW |
9 | |
10 | .PHONY: check | |
11 | check: tl-append tl-append-test | |
12 | ./tl-append-test | |
13 | ||
14 | .PHONY: install | |
15 | install: tl-append | |
16 | $(INSTALL) -d $(DESTDIR)$(bindir) | |
17 | $(INSTALL) -m 755 $^ $(DESTDIR)$(bindir) | |
c40c4889 SW |
18 | |
19 | .PHONY: clean | |
20 | clean: | |
21 | -rm tl-append tl-append-test tl.log |