]> git.scottworley.com Git - tl-append/blame_incremental - Makefile
test: factor out verify_line()
[tl-append] / Makefile
... / ...
CommitLineData
1prefix = /usr/local
2bindir = $(prefix)/bin
3INSTALL = install
4
5tl-append: common.o
6tl-append-test: common.o
7
8%.o: %.c
9 $(CC) -Wall -Wextra -pedantic -std=c99 -o $@ -c $^
10%: %.c
11 $(CC) -Wall -Wextra -pedantic -std=c99 -o $@ $^
12
13.PHONY: check
14check: tl-append tl-append-test
15 ./tl-append-test
16
17.PHONY: install
18install: tl-append
19 $(INSTALL) -d $(DESTDIR)$(bindir)
20 $(INSTALL) -m 755 $^ $(DESTDIR)$(bindir)
21
22.PHONY: clean
23clean:
24 -rm tl-append tl-append-test tl.log *.o
25
26tl-append.o: common.h
27tl-append-test.o: common.h