"Fossies" - the Fresh Open Source Software Archive

Member "tcshrc/Makefile" (24 Jan 2009, 3187 Bytes) of package /linux/privat/old/tcshrc-1.6.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #############################################################################
    2 ##
    3 ## Author: Simos Xenitellis (simos.lists@googlemail.com)
    4 ##
    5 
    6 ## This is the makefile, part of the TCSHRC project
    7 ## at http://tcshrc.sourceforge.net
    8 
    9 SHARETCSHRC="/usr/share/tcshrc"
   10 BIN="/usr/bin"
   11 
   12 help:
   13 	@echo "tcshrc" makefile
   14 	@echo
   15 	@echo Options available:
   16 	@echo  "  % make 		display this help"
   17 	@echo
   18 	@echo  "  % make backup		take a backup of the original .tcshrc"
   19 	@echo  "                        (it is saved as .tcshrc.ORIGINAL)"
   20 	@echo  "                        you should run this once in the begining"
   21 	@echo  "                        otherwise you may overwrite the backup"
   22 	@echo
   23 	@echo  "  % make install	install the new .tcshrc* files in"
   24 	@echo  "                        the current directory"
   25 	@echo
   26 	@echo  "  % make systeminstall	install the new .tcshrc* files in"
   27 	@echo  "                        /usr/local/share/tcshrc, then add"
   28 	@echo  "                        tcshrc_config to /usr/local/bin/"
   29 	@echo
   30 	@echo "The author does not take any responsibility" 
   31 	@echo "for the bad use/misuse of this Makefile."
   32 	@echo
   33 
   34 backup:
   35 	@test -f $(HOME)/.tcshrc.ORIGINAL && echo "Backup already exists!" || echo -n ""
   36 	@test ! -f $(HOME)/.tcshrc || cp $(HOME)/.tcshrc $(HOME)/.tcshrc.ORIGINAL
   37 
   38 install:
   39 	@echo -n "Copying config files to $(HOME)..."
   40 	@/bin/cp -f src/tcshrc          $(HOME)/.tcshrc
   41 	@/bin/cp -f src/tcshrc.alias    $(HOME)/.tcshrc.alias
   42 	@/bin/cp -f src/tcshrc.bindkey  $(HOME)/.tcshrc.bindkey
   43 	@/bin/cp -f src/tcshrc.complete $(HOME)/.tcshrc.complete
   44 	@/bin/cp -f src/tcshrc.hosts    $(HOME)/.tcshrc.hosts
   45 	@/bin/cp -f src/tcshrc.set      $(HOME)/.tcshrc.set
   46 	@test -e $(HOME)/.tcshrc.local || echo "You already have a ~/.tcshrc.local. Not overwriting."
   47 	@test ! -e $(HOME)/.tcshrc.local || /bin/cp src/tcshrc.local $(HOME)/.tcshrc.local
   48 	@/bin/cp -u src/tcshrc.local 	$(HOME)/.tcshrc.local
   49 	@echo " done."
   50 
   51 systeminstall:
   52 	@echo -n "Copying config files to $(SHARETCSHRC)..."
   53 	@/bin/mkdir -p $(SHARETCSHRC)/
   54 	@/bin/cp -f src/tcshrc          $(SHARETCSHRC)/
   55 	@/bin/cp -f src/tcshrc.alias    $(SHARETCSHRC)/
   56 	@/bin/cp -f src/tcshrc.bindkey  $(SHARETCSHRC)/
   57 	@/bin/cp -f src/tcshrc.complete $(SHARETCSHRC)/
   58 	@/bin/cp -f src/tcshrc.hosts    $(SHARETCSHRC)/
   59 	@/bin/cp -f src/tcshrc.set      $(SHARETCSHRC)/
   60 	@/bin/cp -f src/tcshrc.local    $(SHARETCSHRC)/
   61 	@/bin/cp -f README              $(SHARETCSHRC)/README.txt
   62 	@chmod 0444 $(SHARETCSHRC)/tcshrc*
   63 	@echo " done."
   64 	@echo -n "Copying tcshrc_config to $(BIN)..."
   65 	@/bin/cp -f tcshrc_config      $(BIN)
   66 	@chmod 0755 $(BIN)/tcshrc_config
   67 	@echo " done."
   68 	@echo
   69 	@echo "You can now use tcshrc_config"
   70 	@echo "    as root to populate the /etc/skel directory"
   71 	@echo "    so that each new user will have the config files,"
   72 	@echo "or"
   73 	@echo "    as any user to have your own copy of the "
   74 	@echo "    tcshrc configuration files in your home directory."
   75 	@echo 
   76 	@echo "Q: Did you put the dot files in /etc/skel? A: No, use tcshrc_config."
   77 
   78 sex: 
   79 	@echo "Sorry, it's 'have sex', not 'make sex'."
   80 
   81 love:
   82 	@echo "make: *** No rule on how to make \`love'.  Stop."
   83 
   84 war:
   85 	@echo "make: *** No idea how to make war. War is stupid.  Stop."