1# Generated automatically from Makefile.in by configure. 2 3# 4# klondike Makefile 5# 6# Copyright (C) 1993-1996 by John Heidemann <johnh@isi.edu> 7# All rights reserved. 8# 9# $Id: Makefile.in,v 1.9 1999/02/09 03:03:52 johnh Exp $ 10# 11 12srcdir = . 13 14INSTALL = /usr/bin/install -c 15# INSTALL_PROGRAM breaks on FreeBSD beacuse we try to strip shell scripts 16MY_INSTALL_PROGRAM = $(INSTALL) -m 555 17INSTALL_DATA = ${INSTALL} -m 644 18MKDIR_P = mkdir -p 19 20 21WISHX = /usr/bin/wishx 22TCL_PRO_COMPILER = /usr/local/bin/procomp 23TCL_PRO_WRAPPER = /usr/local/bin/prowrap 24 25prefix = /usr 26exec_prefix = ${prefix} 27 28enable_scoring=yes 29 30 31# 32# finally, the real directories 33# 34BINDIR = /usr/bin 35LIBDIR = /usr/lib/klondike 36MANEXT = 6 37MANDIR = /usr/man/man$(MANEXT) 38 39 40TCL_FILES=klondike klondikeMenus.tcl klondikeRules.tcl klondikeScore.tcl table.tcl tclx_compat.tcl 41TBC_FILES=klondike.tbc klondikeMenus.tbc klondikeRules.tbc klondikeScore.tbc table.tbc tclx_compat.tbc 42BITMAP_FILES=CARDS/*.xbm 43 44# 45# default target 46# 47all: 48 @echo "Klondike is ready for installation." 49 50binary: bin_dir compile wrap 51 52bin_dir: 53 test -d bin || $(MKDIR_P) bin 54 55compile: 56 test "x$(TCL_PRO_COMPILER)" != "x" && $(TCL_PRO_COMPILER) $(TCL_FILES) 57 58wrap: 59 test "x$(TCL_PRO_WRAPPER)" != "x" && $(TCL_PRO_WRAPPER) $(TBC_FILES) $(BITMAP_FILES) -out bin/klondike 60 61binary_install: binary install_man 62 test -d $(BINDIR) || $(MKDIR_P) $(BINDIR) 63 test -d $(BINDIR)/SCORES || $(MKDIR_P) $(BINDIR)/SCORES 64 cp bin/klondike $(BINDIR) 65 66# 67# administrativia 68# 69 70install: install_dirs install_progs install_bitmaps install_scores install_man install_release 71 @echo Installation of klondike is complete. 72 73install_dirs: 74 test -d $(BINDIR) || $(MKDIR_P) $(BINDIR) 75 test -d $(LIBDIR) || $(MKDIR_P) $(LIBDIR) 76 test -d $(LIBDIR)/CARDS || $(MKDIR_P) $(LIBDIR)/CARDS 77 test -d $(LIBDIR)/SCORES || $(MKDIR_P) $(LIBDIR)/SCORES 78 79install_progs: 80 @for i in $(TCL_FILES); \ 81 do \ 82 $(MY_INSTALL_PROGRAM) $$i $(LIBDIR); \ 83 done 84 mv $(LIBDIR)/klondike $(BINDIR) 85 86install_bitmaps: 87 $(INSTALL_DATA) $(BITMAP_FILES) $(LIBDIR)/CARDS 88 89install_release: 90 $(INSTALL_DATA) release $(LIBDIR) 91 92# 93# To mitigate the effects of a world-writable directory, 94# we deny read (list) permission on the directory. 95# If your file system doesn't support UFS-semantics for a 0733 mode 96# you may need to chane its permission. 97# 98install_scores: 99 test -d $(LIBDIR)/SCORES || $(MKDIR_P) $(LIBDIR)/scores 100 test $(enable_scoring) = yes && chmod 0733 $(LIBDIR)/SCORES 101 102# to be like normal X programs 103install.man: install_man 104 105install_man: 106 test -d $(MANDIR) || $(MKDIR_P) $(MANDIR) 107 $(INSTALL_DATA) klondike.man $(MANDIR)/klondike.$(MANEXT) 108 109 110# 111# distribution stuff 112# 113 114TOSHAR=README release klondike.man Makefile makefile.vc \ 115 klondike.lsm \ 116 Makefile.in klondike.in \ 117 configure install-sh \ 118 klondike.spec \ 119 $(TCL_FILES) $(BITMAP_FILES) 120 121PORT_FILES=\ 122 ./klondike-freebsd-port/Makefile \ 123 ./klondike-freebsd-port/files/md5 \ 124 ./klondike-freebsd-port/pkg/COMMENT \ 125 ./klondike-freebsd-port/pkg/DESCR \ 126 ./klondike-freebsd-port/pkg/PLIST 127 128klondike-freebsd-port.tar.gz: 129 ln -s FREEBSD_PORT ./klondike-freebsd-port 130 tar cvf - $(PORT_FILES) | gzip >klondike-freebsd-port.tar.gz 131 rm ./klondike-freebsd-port 132 133 134.tar_files: Makefile release 135 for i in $(TOSHAR); \ 136 do \ 137 echo ./klondike-`cat release`/$$i; \ 138 done >.tar_files 139 140tar: .tar_files 141 ln -s . ./klondike-`cat release` 142 tar cvf - `cat .tar_files` >klondike-`cat release`.tar 143 rm ./klondike-`cat release` 144 145tar.gz: .tar_files 146 ln -s . ./klondike-`cat release` 147 tar cvf - `cat .tar_files` |gzip >klondike-`cat release`.tar.gz 148 rm ./klondike-`cat release` 149 150 151 152