~kennylevinsen/greetd

ref: 0.8.0 greetd/man/Makefile -rw-r--r-- 871 bytes
d2477a8fKenny Levinsen Bump version to 0.8.0 8 months 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
SCDOC=$(shell pkg-config --variable=scdoc scdoc)
PREFIX?=/usr/local
MANDIR?=$(PREFIX)/share/man
DESTDIR?=

agreety.1: agreety-1.scd
	$(SCDOC) < agreety-1.scd > agreety.1

greetd.1: greetd-1.scd
	$(SCDOC) < greetd-1.scd > greetd.1

greetd.5: greetd-5.scd
	$(SCDOC) < greetd-5.scd > greetd.5

greetd-ipc.7: greetd-ipc-7.scd
	$(SCDOC) < greetd-ipc-7.scd > greetd-ipc.7

all: agreety.1 greetd.1 greetd.5 greetd-ipc.7

install:
	mkdir -p $(DESTDIR)$(MANDIR)/man1
	mkdir -p $(DESTDIR)$(MANDIR)/man5
	mkdir -p $(DESTDIR)$(MANDIR)/man7
	install -m644 agreety.1 $(DESTDIR)$(MANDIR)/man1/agreety.1
	install -m644 greetd.1 $(DESTDIR)$(MANDIR)/man1/greetd.1
	install -m644 greetd.5 $(DESTDIR)$(MANDIR)/man5/greetd.5
	install -m644 greetd-ipc.7 $(DESTDIR)$(MANDIR)/man7/greetd-ipc.7

clean:
	rm -f agreety.1 greetd.1 greetd.5 greetd-ipc.7

.DEFAULT_GOAL=all
.PHONY: all install clean