Added
Link Here
|
1 |
--- Makefile.orig 2024-04-04 08:13:06 UTC |
2 |
+++ Makefile |
3 |
@@ -1,5 +1,5 @@ |
4 |
-PREFIX=/usr/local |
5 |
-PREFIX_MAN=$(PREFIX)/man |
6 |
+PREFIX:=$(PREFIX) |
7 |
+PREFIX_MAN=$(PREFIX)/share/man |
8 |
CFLAGS?=-g -Wall -Wextra |
9 |
|
10 |
all: snac |
11 |
@@ -18,14 +18,14 @@ install: |
12 |
$(CC) -I/usr/local/include -MM *.c > makefile.depend |
13 |
|
14 |
install: |
15 |
- mkdir -p -m 755 $(PREFIX)/bin |
16 |
- install -m 755 snac $(PREFIX)/bin/snac |
17 |
- mkdir -p -m 755 $(PREFIX_MAN)/man1 |
18 |
- install -m 644 doc/snac.1 $(PREFIX_MAN)/man1/snac.1 |
19 |
- mkdir -p -m 755 $(PREFIX_MAN)/man5 |
20 |
- install -m 644 doc/snac.5 $(PREFIX_MAN)/man5/snac.5 |
21 |
- mkdir -p -m 755 $(PREFIX_MAN)/man8 |
22 |
- install -m 644 doc/snac.8 $(PREFIX_MAN)/man8/snac.8 |
23 |
+ mkdir -p -m 755 $(DESTDIR)$(PREFIX)/bin |
24 |
+ install -m 755 snac $(DESTDIR)$(PREFIX)/bin/snac |
25 |
+ mkdir -p -m 755 $(DESTDIR)$(PREFIX_MAN)/man1 |
26 |
+ install -m 644 doc/snac.1 $(DESTDIR)$(PREFIX_MAN)/man1/snac.1 |
27 |
+ mkdir -p -m 755 $(DESTDIR)$(PREFIX_MAN)/man5 |
28 |
+ install -m 644 doc/snac.5 $(DESTDIR)$(PREFIX_MAN)/man5/snac.5 |
29 |
+ mkdir -p -m 755 $(DESTDIR)$(PREFIX_MAN)/man8 |
30 |
+ install -m 644 doc/snac.8 $(DESTDIR)$(PREFIX_MAN)/man8/snac.8 |
31 |
|
32 |
uninstall: |
33 |
rm $(PREFIX)/bin/snac |