~darklands/teal

teal/Makefile -rw-r--r-- 1.1 KiB
120c9506 — Ben O'Neill update license a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.POSIX:

include config.mk

all: example

teal.conf:
	cp -f teal.conf.def teal.conf

style.css:
	cp -f style.css.def style.css

clean:
	rm -rf teal.conf style.css out teal-$(VERSION).tar.gz

dist:
	mkdir -p teal-$(VERSION)
	cp -rf teal teal.conf.def teal.1 teal.conf.5 style.css.def Makefile \
		config.mk LICENSE example README.md teal-$(VERSION)
	tar -cf teal-$(VERSION).tar teal-$(VERSION)
	gzip teal-$(VERSION).tar
	rm -rf teal-$(VERSION)

example: teal.conf style.css
	./teal

install:
	mkdir -p $(DESTDIR)/$(PREFIX)/bin
	cp -f teal $(DESTDIR)$(PREFIX)/bin/teal
	chmod 755 $(DESTDIR)$(PREFIX)/bin/teal
	mkdir -p $(DESTDIR)/$(MANPREFIX)/man1
	cp -f teal.1 $(DESTDIR)/$(MANPREFIX)/man1
	chmod 644 $(DESTDIR)$(MANPREFIX)/man1/teal.1
	mkdir -p $(DESTDIR)/$(MANPREFIX)/man5
	cp -f teal.conf.5 $(DESTDIR)/$(MANPREFIX)/man5
	chmod 644 $(DESTDIR)$(MANPREFIX)/man5/teal.conf.5

uninstall:
	rm -f $(DESTDIR)/$(PREFIX)/bin/teal
	rm -f $(DESTDIR)/$(PREFIX)/share/man/man1/teal.1
	rm -f $(DESTDIR)/$(PREFIX)/share/man/man7/teal_conf.7

.PHONY: all clean dist example install uninstall