# NOTE: aagraph is at svn://repo.hu/projects/aagraph/trunk

PCBRND = ../../../../src/sch-rnd
CLEANFILES=../action_details.html ../action_reference.html ../formats.html

all: $(CLEANFILES)

include ../../../../Makefile.conf
include $(LIBRND_MAK)

../action_details.html: ./action_compiler.sh ../action_src/*.html librnd_acts
	LIBRND_LIBDIR=$(LIBRND_LIBDIR) ./action_compiler.sh ../action_src/*.html LIBRND librnd_acts/*.html > ../action_details.html

../action_reference.html : ./dump_actions_to_html.sh $(PCBRND) ../action_details.html librnd_acts
	LIBRND_LIBDIR=$(LIBRND_LIBDIR) ./dump_actions_to_html.sh > ../action_reference.html

../formats.html: ../../../../src/plugins/*/*.pup
	APP="pcb-rnd" PLUGINS="../../../../src/plugins" $(LIBRND_LIBDIR)/gen_formats.sh > ../formats.html

librnd_acts: FORCE
	svn checkout svn://svn.repo.hu/librnd/trunk/doc/action librnd_acts

FORCE:

clean:  
	rm $(CLEANFILES)
	-rm -rf librnd_acts
