]>
Commit | Line | Data |
---|---|---|
1 | prefix = /usr/local | |
2 | bindir = $(prefix)/bin | |
3 | INSTALL = install | |
4 | ||
5 | tl-append: | |
6 | ||
7 | %: %.c | |
8 | $(CC) -Wall -Wextra -pedantic -std=c99 -o $@ $^ | |
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) | |
18 | ||
19 | .PHONY: clean | |
20 | clean: | |
21 | -rm tl-append tl-append-test tl.log |