blob: 934cc3c12943f0cef3f5e00de8e7bd2ce77f8c1e (
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
31
32
33
34
35
|
--- ./Makefile.orig 2014-02-15 12:14:49.000000000 -0500
+++ ./Makefile 2014-03-31 20:03:46.000000000 -0400
@@ -36,12 +36,12 @@
###
# installation options
#
-prefix = /usr/local
+prefix ?= /usr/local
LOCALEDIR = $(prefix)/share/locale
PROG = di
MPROG = mi
#
-INSTALL_DIR = $(prefix)
+INSTALL_DIR = $(DESTDIR)$(prefix)
INSTALL_BIN_DIR = $(INSTALL_DIR)/bin
INST_LOCALEDIR = $(INSTALL_DIR)/share/locale
TARGET = $(INSTALL_BIN_DIR)/$(PROG)$(EXE_EXT)
@@ -58,7 +58,7 @@
#
# simple man page installation
#
-DI_MANINSTDIR = $(INSTALL_DIR)/share/man
+DI_MANINSTDIR = $(INSTALL_DIR)/man
DI_MANDIR = $(DI_MANINSTDIR)/man1
MAN_TARGET = $(PROG).1
MANPERM = 644
@@ -140,7 +140,7 @@
$(TEST) -d $(INSTALL_BIN_DIR) || $(MKDIR) $(INSTALL_BIN_DIR)
$(CP) -f ./$(FROMDIR)/$(PROG)$(EXE_EXT) $(TARGET)
-$(RM) -f $(MTARGET) > /dev/null 2>&1
- -$(LN) -s $(PROG)$(EXE_EXT) $(MTARGET)
+ -( cd $(INSTALL_BIN_DIR) && $(LN) -s $(PROG)$(EXE_EXT) $(MPROG)$(EXE_EXT) )
@-test -f $(FROMDIR)/config.h && \
grep '^#define _enable_nls 1' $(FROMDIR)/config.h >/dev/null 2>&1 && \
(. ./$(FROMDIR)/di.env; $(MAKE) -e INST_LOCALEDIR="$(INST_LOCALEDIR)" \
|