dterm-nuc
view Makefile @ 2:68e6bdd9c9df
minor copyright message adjustment
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 08 Apr 2017 00:00:47 +0300 |
parents | ad098a33fd34 |
children |
line source
1 PREFIX = /usr/local
2 VERSION = 0.4
4 obj = dterm.o
5 bin = dterm
7 CFLAGS = -pedantic -Wall -Werror -Os -DVERSION='"$(VERSION)"'
9 $(bin): $(obj)
10 $(CC) -o $@ $(obj) $(LDFLAGS)
12 .PHONY: install
13 install: $(bin)
14 mkdir -p $(DESTDIR)$(PREFIX)/bin
15 cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)
17 .PHONY: uninstall
18 uninstall:
19 rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)
21 .PHONY: clean
22 clean:
23 rm -f $(bin) $(obj)
25 .PHONY: package
26 package: dterm.c LICENCE.txt README.txt Makefile
27 mkdir -p dterm-$(VERSION)
28 cp dterm.c LICENCE.txt README.txt Makefile dterm-$(VERSION)
29 tar czvf dterm-$(VERSION).tar.gz dterm-$(VERSION)
30 rm -rf dterm-$(VERSION)