# Emacs, this is a -*- Makefile -*-
#
# Makefile for cleaning up the doc/ directory.
#

include ../mk.korigin

doc: kdoc

#
# KDOC Syntax:
#
kdoc:
	$(KDOC) -H -d$(KORIGIN)/doc/lib/ libkorigin $(KORIGIN)/doc/tmp/*

#
# DOC++ Syntax:
#
# Note that DOC++ is no longer used since it lacks signal/slot support.
#
docplusplus:
	$(DXX) -d $(KORIGIN)/doc/lib/ $(KORIGIN)/doc/tmp/*

install: doc
	$(INSTALL) -d $(KDEDIR)/share/doc/HTML/en/korigin
	$(INSTALL) manual/* $(KDEDIR)/share/doc/HTML/en/korigin

clean:
	rm -f *~ manual/*~
	rm -f $(KORIGIN)/doc/tmp/*

distclean: clean
	rm -f $(KORIGIN)/doc/lib/*
	rm -f $(KORIGIN)/doc/lib/.[A-z]*
