# template for Makefile 
# Copyright (C) TOYODA Eizi, 1998.  All rights reserved.
# see COPYING.TXT for terms of license.

B	= dcbib
HTMS	= $B-add.htm $B.htm $B-card.htm rfc822-like.htm
MAN2HTM	= $(HTROFF) -man -u

.SUFFIXES: .htm .5 .1

all: htms

force:
	$(MAKE) htms
	$(MAKE) touch
	$(MAKE) htms

htms: $(HTMS)

$(HTMS):

.1.htm:
	$(MAN2HTM) $< > $@

.5.htm:
	$(MAN2HTM) $< > $@

clean:
	-rm -f $(HTMS) *.bak

clean.dist:
	-rm -f Makefile

touch:
	touch *.1 *.5

config:
	//..// $(MAKE) config

install: all
	for sec in 1 5 ;\
	do \
		for file in *.$$sec ;\
		do \
			$(INSTALLDIR) $(DESTDIR)$(MANDIR)/man$$sec ;\
			$(INSTALL) $$file $(DESTDIR)$(MANDIR)/man$$sec ;\
		done ;\
	done
