forked from hoytech/vmtouch
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 661 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (19 loc) · 661 Bytes
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
PREFIX?= /usr/local
BINDIR?= $(PREFIX)/bin
MANDIR?= $(PREFIX)/share/man/man8
CC?= cc
CFLAGS+= -Wall -O2 -g -std=c99
all: vmtouch vmtouch.8
.PHONY: all install clean uninstall
vmtouch: vmtouch.c
${CC} ${CFLAGS} ${LDFLAGS} -o vmtouch vmtouch.c
vmtouch.8: vmtouch.pod
pod2man --section 8 --center "System Manager's Manual" --release " " vmtouch.pod > vmtouch.8
install: vmtouch vmtouch.8
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
install -m 0755 vmtouch $(DESTDIR)$(BINDIR)/vmtouch
install -m 0644 vmtouch.8 $(DESTDIR)$(MANDIR)/vmtouch.8
clean:
rm -f vmtouch vmtouch.8
uninstall:
rm $(DESTDIR)$(BINDIR)/vmtouch $(DESTDIR)$(MANDIR)/vmtouch.8