60 lines
1.5 KiB
Text
60 lines
1.5 KiB
Text
--- Makefile.orig Sun Dec 29 13:26:39 1996
|
|
+++ Makefile Thu Sep 14 18:07:32 2000
|
|
@@ -14,10 +14,10 @@
|
|
TCLMAN_DEST = /usr/local/man/man1
|
|
|
|
# The full path to tclsh
|
|
-TCLSH = /usr/local/bin/tclsh
|
|
+TCLSH = tclsh8.2
|
|
|
|
# The full path to wish.
|
|
-WISH = /usr/local/bin/wish
|
|
+WISH = wish8.2
|
|
### DON'T EDIT ANYTHING BELOW THIS LINE ###
|
|
|
|
TCLLIB_FILES = \
|
|
@@ -40,35 +40,36 @@
|
|
TCLPRG_FILE = tkhylafax
|
|
TCLMAN_FILE = tkhylafax
|
|
|
|
-all: lib install.man tkhylafax
|
|
+all:
|
|
+
|
|
+install: lib install.man tkhylafax.inst
|
|
echo 'auto_mkindex $(TCLLIB_DEST) *.tcl *.t' | $(TCLSH);
|
|
|
|
$(TCLLIB_DEST):
|
|
if [ ! -d $(TCLLIB_DEST) ]; then mkdir -p $(TCLLIB_DEST); fi
|
|
- chmod 775 $(TCLLIB_DEST)
|
|
+ chmod 755 $(TCLLIB_DEST)
|
|
|
|
lib: $(TCLLIB_DEST)
|
|
@echo "Installing tkhylafax library..."
|
|
-for i in $(TCLLIB_FILES) ; do \
|
|
cp $$i $(TCLLIB_DEST)/$$i ; \
|
|
- chmod 664 $(TCLLIB_DEST)/$$i ; \
|
|
+ chmod 644 $(TCLLIB_DEST)/$$i ; \
|
|
done
|
|
@echo "Done"
|
|
|
|
$(TCLPRG_DEST):
|
|
if [ ! -d $(TCLPRG_DEST) ]; then mkdir -p $(TCLPRG_DEST); fi
|
|
- chmod 775 $(TCLPRG_DEST)
|
|
+ chmod 755 $(TCLPRG_DEST)
|
|
|
|
-tkhylafax: $(TCLPRG_DEST)
|
|
+tkhylafax.inst: $(TCLPRG_DEST)
|
|
@echo "Patching tkhylafax..."
|
|
mv tkhylafax tkhylafax.unpatched
|
|
sed -e 's|XXX_TKHYLAFAX_XXX|$(TCLLIB_DEST)|g' \
|
|
tkhylafax.unpatched > tkhylafax
|
|
@echo "Done"
|
|
@echo "Installing tkhylafax command..."
|
|
- cp $(TCLPRG_FILE) $(TCLPRG_DEST)/$@
|
|
- chmod 775 $(TCLPRG_DEST)/$@
|
|
- mv tkhylafax.unpatched tkhylafax
|
|
+ cp $(TCLPRG_FILE) $(TCLPRG_DEST)/tkhylafax
|
|
+ chmod 755 $(TCLPRG_DEST)/tkhylafax
|
|
@echo "Done"
|
|
|
|
install.man:
|