FILA=$(shell find ../gamalib  | grep \\\.lang$ | grep -v \\\# | grep -v \\\~ )
FILB=$(shell find ../gamaprog | grep \\\.lang$ | grep -v \\\# | grep -v \\\~ )
FILC=$(shell find ../xml      | grep \\\.lang$ | grep -v \\\# | grep -v \\\~ )

FILES=$(FILA) $(FILB) $(FILC)

LANGUAGES=../gamalib/language.h    ../gamalib/language.cpp \
          ../gamalib/language.html


$(LANGUAGES) : slovnikar $(FILES)
	@echo
	@echo input files : $(FILES)
	@(echo $(FILES) | ./slovnikar )
	@echo
	@mv -v language.* ../gamalib
	@echo

slovnikar: slovnikar.cpp Makefile-slovnikar
#	( pwd; cd ../gamaprog/linux/lib; make -f Makefile-expat ) 
	g++ -I.. -c slovnikar.cpp ../gnu_gama/xml/encoding.cpp	
	g++ -o slovnikar slovnikar.o encoding.o \
                -lexpat ../gamaprog/linux/lib/libgama.a



