blob: c901a578b1bf27ec1a78a8830fb9361397bfd4bf (
plain)
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
|
diff --git a/Makefile b/Makefile
index 69ab43d..c8fca9d 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ override CFLAGS+=-Wall -DVERSION=\"$(VERSION)\" $(DEBUG)
OBJS=r2t.o
-prefix ?= /usr/local
+prefix ?= /usr
bindir ?= $(prefix)/bin
mandir ?= $(prefix)/share/man/man1
@@ -15,10 +15,10 @@ rsstail: $(OBJS)
$(CC) -Wall -W $(OBJS) $(LDFLAGS) -o rsstail
install: rsstail
- mkdir -p $(bindir)
- mkdir -p $(mandir)
- install rsstail $(bindir)
- install -m 644 rsstail.1 $(mandir)
+ mkdir -p $(DESTDIR)$(bindir)
+ mkdir -p $(DESTDIR)$(mandir)
+ install rsstail $(DESTDIR)$(bindir)
+ install -m 644 rsstail.1 $(DESTDIR)$(mandir)
uninstall:
rm $(bindir)/rsstail $(mandir)/rsstail.1
|