#*********************************************************************#
#                                                                     #
#                                Htmlc                                #
#                                                                     #
#            Pierre Weis, projet Cristal, INRIA Rocquencourt          #
#                                                                     #
#  Copyright 1997 Institut National de Recherche en Informatique et   #
#  en Automatique.  Distributed only by permission.                   #
#                                                                     #
#*********************************************************************#

# $Id: Makefile,v 1.13 2004/09/22 11:07:55 weis Exp $

# Makefile for HTML files generation.

# From a list of source files (.html files) generates the
# corresponding objects (.htm files) using Htmlc.

# Usage: fill in the HTMLC and FILES variables below, then
# make (or make all) will rebuild the whole thing
# make clean will remove all the generated files

# The Htmlc compiler with its include path options
HTMLC=../compiler/htmlc -I Includes

# Prefix before regular names
PACKAGE=htmlc

# The list of source files
FILES=$(PACKAGE)-index.html $(PACKAGE)-fra.html $(PACKAGE)-eng.html
MANFILES=$(PACKAGE).man

######## This part should automatically handle the generation of
######## object files

# The list of object files
OBJS=$(FILES:.html=.htm)
MANOBJS=$(MANFILES:.man=.1)

all: $(OBJS) $(MANOBJS)

$(OBJS) : Includes/*.html

clean::
	/bin/rm -f $(OBJS) $(MANOBJS)
	cd Includes; /bin/rm -f *~

.SUFFIXES:
.SUFFIXES: .htm .html .man .1

.html.htm:
	$(HTMLC) -f $< -t $@
.man.1:
	$(HTMLC) -f $< -t $@
