Skip to content

Commit 37aa693

Browse files
committed
let user set installation prefix
1 parent 4356ffc commit 37aa693

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
DESTDIR=/
1+
PREFIX=/usr/local
22

33
all: install
44

55
install:
6-
mkdir -p $(DESTDIR)/usr/bin/ || true
7-
mkdir -p $(DESTDIR)/usr/lib/phpfetch/ || true
6+
mkdir -p $(PREFIX)/bin/ || true
7+
mkdir -p $(PREFIX)/lib/phpfetch/ || true
88

9-
install phpfetch $(DESTDIR)/usr/bin/phpfetch
10-
install logo.txt $(DESTDIR)/usr/lib/phpfetch/logo.txt
11-
sed -i 's|logo.txt|/usr/lib/phpfetch/logo.txt|g' $(DESTDIR)/usr/bin/phpfetch
9+
install phpfetch $(PREFIX)/bin/phpfetch
10+
install logo.txt $(PREFIX)/lib/phpfetch/logo.txt
11+
sed -i 's|logo.txt|$(PREFIX)/lib/phpfetch/logo.txt|g' $(PREFIX)/bin/phpfetch

0 commit comments

Comments
 (0)