-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 689 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 689 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
28
29
30
31
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
CFLAGS = -Wall
LDLIBS = -lX11 -lXext -lImlib2
OBJS = xwaifu.o
xwaifu: $(OBJS)
$(CC) -o xwaifu $(OBJS) $(LDLIBS)
xwaifu.o:
.PHONY: clean install uninstall
clean:
rm -f $(OBJS) xwaifu
install: xwaifu
@echo 'INSTALL xwaifu'
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp xwaifu $(DESTDIR)$(PREFIX)/bin/
chmod 755 $(DESTDIR)$(PREFIX)/bin/xwaifu
@echo 'INSTALL xwaifu.1'
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
cp xwaifu.1 $(DESTDIR)$(MANPREFIX)/man1/
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/xwaifu.1
uninstall:
@echo 'REMOVE xwaifu'
rm -f $(DESTDIR)$(PREFIX)/bin/xwaifu
@echo 'REMOVE xwaifu.1'
rm -f $(DESTDIR)$(MANPREFIX)/man1/xwaifu.1