SUBDIRS = src po data man

all:
	for i in $(SUBDIRS); do $(MAKE) -C $$i all || exit 1; done

install: install-progs install-data install-man

install-progs:
	for i in $(SUBDIRS); do $(MAKE) -C $$i install || exit 1; done

install-man:
	$(MAKE) -C man install

install-data:
	$(MAKE) -C data install

clean:
	for i in $(SUBDIRS); do $(MAKE) -C $$i clean || exit 1; done

reallyclean distclean spotless: clean
	find . -name "*~" -exec rm {} ";"
	for i in $(SUBDIRS); do $(MAKE) -C $$i distclean || exit 1; done
	rm -f config.h Makefile configure config.status config.log
