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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
## Makefile for performing launcher 0.85 installation
## Ethan Gold <etgold@cs.columbia.edu> 1/19/99
## 3/24/99
## 4/9/99
## 5/31/99
INSTALLROOT=/usr
HOMEDIR=$(HOME)
#ETCDIR=/etc
ETCDIR=/usr
DOCDIR=$(INSTALLROOT)/share/man/man1
RM=rm -f
## GNU cp - autobackup of existing files to *.old
CP=cp -b -S ".old"
MKDIR=mkdir -p
CHMOD=chmod
MV=mv
##################################################
## do not modify below this line
## unless you know what you're doing
##################################################
CONFIG=./config.tcl
L1=launcher
L2=launcherchoice
L3=emacsw
L4=launcherconfig
MAGIC=magic.mime
TYPES=mime.types
MAP=launcher.map
MAN=launcher.1
ALLFILES=$(L1).tcl $(L2).tcl $(L3) $(L4).tcl $(MAGIC) $(TYPES) $(MAN)
default:
@echo ""
@echo "Please read the INSTALL file before running make."
@echo "Available targets are:"
@echo " install"
@echo " installfilesglobal"
@echo " installfileslocal"
@echo ""
all: install installfileslocal
install:
$(CONFIG) $(L1).tcl $(L1).new $(ETCDIR)
$(CONFIG) $(L4).tcl $(L4).new $(ETCDIR)
$(MKDIR) $(INSTALLROOT)/bin
$(RM) $(INSTALLROOT)/bin/$(L1) $(INSTALLROOT)/bin/$(L2)
$(CP) $(L1).new $(INSTALLROOT)/bin/$(L1)
$(CP) $(L2).tcl $(INSTALLROOT)/bin/$(L2)
$(CP) $(L3) $(INSTALLROOT)/bin/$(L3)
$(CP) $(L4).new $(INSTALLROOT)/bin/$(L4)
$(CHMOD) 755 $(INSTALLROOT)/bin/$(L1) $(INSTALLROOT)/bin/$(L2) \
$(INSTALLROOT)/bin/$(L4)
$(CP) $(MAN) $(DOCDIR)
installfilesglobal:
$(CP) $(MAGIC) $(TYPES) $(MAP) $(ETCDIR)
installfileslocal:
$(CP) $(MAGIC) $(HOMEDIR)/.$(MAGIC)
$(CP) $(TYPES) $(HOMEDIR)/.$(TYPES)
$(CP) $(MAP) $(HOMEDIR)/.$(MAP)
|