blob: 86ad740a967fc378d9cdea68e9d9a41044095cb0 (
plain) (
blame)
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
|
.POSIX:
CONFIGFILE = config.mk
include $(CONFIGFILE)
all: learn-your-telephone-number
learn-your-telephone-number: learn-your-telephone-number.o
$(CC) -o $@ $@.o $(LDFLAGS)
install: learn-your-telephone-number
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin/"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/"
mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/learn-your-telephone-number/"
cp -- learn-your-telephone-number "$(DESTDIR)$(PREFIX)/bin/"
cp -- learn-your-telephone-number.1 "$(DESTDIR)$(MANPREFIX)/man1/"
cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/learn-your-telephone-number/"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/bin/learn-your-telephone-number"
-rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/learn-your-telephone-number.1"
-rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/learn-your-telephone-number/"
clean:
-rm -f -- learn-your-telephone-number *.o
.SUFFIXES:
.SUFFIXES: .o .c
.PHONY: all install uninstall clean
|