#
# Module:   Makefile
# Purpose:  to build programs in the HTMLEXTRACT directory
# Author:   Wade Hampton
# Date:     9/26/95
#
# RCS:
# $Log$
#
CC=gcc
INCLUDE=.
DEBUG_FLAGS=-g
CFLAGS=-I$(INCLUDE) $(DEBUG_FLAGS)
#
THIS_MAKEFILE=Makefile
SUFFIX=
RM=rm -f
#
#----------------------------------------------------------------------
htmlextract:  htmlextract.c
	$(CC) $(CFLAGS) -o htmlextract htmlextract.c
#	
#----------------------------------------------------------------------
html::
	htmlextract -ihtmlextract.c >htmlextract.html
	htmlextract -ihtmldef.h >htmldef.html
	htmlextract -idemo.h >demo.html
#	
#----------------------------------------------------------------------
clean::
	rm *.html
	rm htmlextract
#	
#----------------------------------------------------------------------
install::
	chmod 644 *.html
	cp *.html ../..
	cp htmlextract /usr/local/bin
	chmod 755 /usr/local/bin/htmlextract
#----------------------------------------------------------------------
tar::
	tar cvzf htmlext.tgz Makefile README* *.lsm *.c *.h
#----------------------------------------------------------------------

