# WARNING
#
# This Makefile is NOT for installation purposes. Please read the file
# docs/Install.html for information about installing Tix.
#
#
#
#
#
#
warning::
	@ head -10 Makefile
	@ exit 1

docs:: html

# This will be overrided by some upper level Makefiles
# 
PATCH_LEVEL = 4.0
PSREF   = TixManPages$(PATCH_LEVEL).ps
PSTITLE = TixManTitle$(PATCH_LEVEL).ps

$(PSREF): *.n *.1 *3
	cp prolog/prolog.ps $(PSTITLE)
	groff -Tps -man *n > $(PSREF)

ps_dist:: $(PSREF)
	-rm $(PSTITLE).gz $(PSREF).gz
	gzip $(PSTITLE) $(PSREF)
	mv $(PSTITLE).gz $(PSREF).gz /home3/ioi/zlink/cisftp

# This section is for makeing amd moving the Tix manual page into
# my html directory.
#

.SUFFIXES: .n .1 .3 .html

MAN_1 = tixwish.1

MAN_3 = 

MAN_N = Balloon.n BtnBox.n ComboBox.n Control.n DirList.n \
	EFileBox.n EFileDlg.n FileBox.n FileDlg.n FileEnt.n Form.n \
	GetBool.n GetInt.n HList.n InpOnly.n LabEntry.n LabFrame.n Mwm.n \
	NoteBook.n OptMenu.n PanedWin.n PopMenu.n SHList.n SListBox.n \
	SText.n SWindow.n Select.n StdBBox.n \
	TixIntro.n Utils.n Wm.n compound.n pixmap.n tix.n

man_1_html:: ${MAN_1:.1=.html}

man_3_html:: ${MAN_3:.3=.html}

man_n_html:: ${MAN_N:.n=.html}

html:: man_1_html man_3_html man_n_html

.1.html:
	/home3/ioi/bin/www/tk2html $< | more -s > $@

.3.html:
	/home3/ioi/bin/www/tk2html $< | more -s > $@

.n.html:
	/home3/ioi/bin/www/tk2html $< | more -s > $@

#html_move:html
#	cp man.html /home3/ioi/public_html/tix/doc/man
#	mv [A-Z]*.html /home3/ioi/public_html/tix/doc/man

distclean:
	- rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors \
		*.ps


clean:: distclean
