]> git.scottworley.com Git - tl-append/blame - Makefile
Release 1.0.1
[tl-append] / Makefile
CommitLineData
b3d5ed96
SW
1prefix = /usr/local
2bindir = $(prefix)/bin
3INSTALL = install
4
d522116b
SW
5tl-append: common.o
6tl-append-test: common.o
b3d5ed96 7
d522116b
SW
8%.o: %.c
9 $(CC) -Wall -Wextra -pedantic -std=c99 -o $@ -c $^
b3d5ed96 10%: %.c
71a7e5c5 11 $(CC) -Wall -Wextra -pedantic -std=c99 -o $@ $^
b3d5ed96
SW
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)
c40c4889
SW
21
22.PHONY: clean
23clean:
d522116b
SW
24 -rm tl-append tl-append-test tl.log *.o
25
26tl-append.o: common.h
27tl-append-test.o: common.h