blob: 4f91d2afef6f6956af4dbd63576797727237c16d (
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
29
30
31
32
33
34
35
36
37
38
39
40
|
$NetBSD: patch-aa,v 1.1.1.1 2004/03/04 15:47:34 wiz Exp $
--- Makefile.orig Sun Oct 12 14:13:16 2003
+++ Makefile
@@ -1,9 +1,9 @@
# Root of installation tree
-PREFIX = /home/usel/tmp
+#PREFIX = /home/usel/tmp
# Path where the executables are installed
BINDIR = $(PREFIX)/bin
# Path where the manual pages are installed
-MANDIR = $(PREFIX)/share/man
+MANDIR = $(PREFIX)/man
# Path to Midnight Commander extfs
MCEXTFSDIR = $(PREFIX)/share/mc/extfs
@@ -44,19 +44,10 @@ torrentutils.spec: torrentutils.spec.in
if [[ "$@" != *.spec ]]; then chmod a+x $@; fi
install: all
- install -d $(BINDIR) $(MANDIR)/man1
- install -m 755 torrenttool $(BINDIR)/torrenttool
- install -m 755 defrag $(BINDIR)
- rm -f tmp.torrenttool.$$
- install -m 644 torrenttool.1 $(MANDIR)/man1
- install -m 644 defrag.1 $(MANDIR)/man1
- install -d $(MCEXTFSDIR)
- install -m 755 torrentmcfs $(MCEXTFSDIR); \
- if [ -f $(MCEXTFSDIR)/extfs.ini ]; then \
- grep '^torrentmcfs$$' $(MCEXTFSDIR)/extfs.ini || echo 'torrentmcfs' >> $(MCEXTFSDIR)/extfs.ini; \
- else \
- echo "$(MCEXTFSDIR) does not exist. Not installing MC extfs support."; \
- fi
+ ${BSD_INSTALL_SCRIPT} torrenttool $(BINDIR)/torrenttool
+ ${BSD_INSTALL_SCRIPT} defrag $(BINDIR)
+ ${BSD_INSTALL_MAN} torrenttool.1 $(MANDIR)/man1
+ ${BSD_INSTALL_MAN} defrag.1 $(MANDIR)/man1
clean:
rm -f torrenttool torrentmcfs defrag torrentutils.spec
|