# # Sample Makefile 12/11/97 cmh # # TeamWeb uses the make tool to run freeWAIS, a program that creates a # searchable index of the files you specify. # # You supply the information enclosed in []s. #---------------------------------------------------------------------------- # Definitions for your building your index. # # 1. Use this definition to make everything retrievable by direct URL. # # INDX-URL=-t URL /usr/pub/www/faq/ http://www.utexas.edu/faq/ # # You can find out what the directory path is with the UNIX pwd command, # type pwd at the command line while in the directory you want to index. # (you don't need /tmp_mnt in your path, just use /usr/...) # INDX-URL=-t URL /usr/pub/ftp/coc/kut/latinousa/LUSAArchives/ http://www.utexas.edu/coc/kut/latinousa/LUSAArchives/ # # 2. This definition specifies the name of your index files. # # INDX-FILE=web-faq-index # INDX-FILE=LUSAArchivesindex # # 3. The following identifies the top directory for your HTML files search. # # INDX-PATH=/usr/pub/www/faq # INDX-PATH=/usr/pub/ftp/coc/kut/latinousa/LUSAArchives # # Use TITLETYPE definition to make everything retrievable by Title. # Use the next commands exactly as shown. # TITLETYPE=-t fields WAISINDEX=/usr/local/freeWAIS-sf-2.0/bin/waisindex -nocat # #---------------------------------------------------------------------------- # # Indenting needs to be done with the tab key, not the space bar. # Also, make sure that there are no spaces after the backslashes (\). # Use the following exactly as shown unless you have other directories # or HTML files you don't want indexed. If so, then for directories # you can just repeat the following line # -o \( -type d -name [directoryname] -prune \) \ # for each directory you want to exclude. # # To exclude HTML files, repeat this line for each file # -o \( -name [filename].html -prune \) \ # # Be sure to put those prune lines (both directories and files) before # -o \( -name \*.html -print \) \ # # If you don't have a stats subdirectory, then you can delete # -o \( -type d -name stats -prune \) \ # web-faq-index: find ${INDX-PATH} \ \( -type d -name .wais -prune \) \ -o \( -type d -name stats -prune \) \ -o \( -name \*.html -print \) \ | $(WAISINDEX) -d $(INDX-FILE) $(INDX-URL) $(TITLETYPE) -stdin