Ticket #2130: patch-Makefile.Linux

File patch-Makefile.Linux, 1.3 KB (added by ultrix@…, 20 years ago)

patch-Makefile.Linux

Line 
1--- Makefile.Linux.orig Wed Feb 26 12:05:47 2003
2+++ Makefile.Linux      Thu Jul 22 12:06:25 2004
3@@ -35,8 +35,8 @@
4 LOCAL_INSTALL_DIR = $(HOME)/bin
5 LOCAL_RESOURCES_DIR = $(HOME)/.antiword
6 
7-GLOBAL_INSTALL_DIR = /usr/local/bin
8-GLOBAL_RESOURCES_DIR = /usr/share/antiword
9+GLOBAL_INSTALL_DIR = ${destroot}${prefix}/bin
10+GLOBAL_RESOURCES_DIR = ${destroot}${prefix}/share/antiword
11 
12 all:           $(PROGS)
13 
14@@ -46,16 +46,11 @@
15        mkdir -p $(LOCAL_RESOURCES_DIR)
16        cp -pf Resources/* $(LOCAL_RESOURCES_DIR)
17 
18-# NOTE: you might have to be root to do this
19-global_install:        all
20-#      @[ `id -u` -eq 0 ] || (echo "You must be root to do this" && false)
21-       mkdir -p $(DESTDIR)$(GLOBAL_INSTALL_DIR)
22-       $(INSTALL_PROGRAM) $(PROGS) $(DESTDIR)$(GLOBAL_INSTALL_DIR)
23-       cd $(DESTDIR)$(GLOBAL_INSTALL_DIR); chmod 755 $(PROGS)
24-       mkdir -p $(DESTDIR)$(GLOBAL_RESOURCES_DIR)
25-       $(INSTALL_DATA) Resources/*.txt $(DESTDIR)$(GLOBAL_RESOURCES_DIR)
26-       $(INSTALL_DATA) Resources/fontnames $(DESTDIR)$(GLOBAL_RESOURCES_DIR)
27-       cd $(DESTDIR)$(GLOBAL_RESOURCES_DIR); chmod 644 *.txt fontnames
28+global_install: all
29+       install -o root -m 755 -d ${GLOBAL_INSTALL_DIR}
30+       install -o root -m 755 ${PROGS} ${GLOBAL_INSTALL_DIR}
31+       install -o root -m 755 -d ${GLOBAL_RESOURCES_DIR}
32+       install -o root -m 644 Resources/*.txt ${GLOBAL_RESOURCES_DIR}
33 
34 # NOTE: you might have to be root to do this
35 global_uninstall: