all:
	cd src && $(MAKE)
	cd mod && $(MAKE)

static:
	cd src && $(MAKE) static
	cd mod && $(MAKE)

debug:
	cd src && $(MAKE) debug
	cd mod && $(MAKE)

conf:
	aclocal && autoconf && autoheader && rm -f config.cache

clean:
	cd src && $(MAKE) clean
	cd mod && $(MAKE) clean
	rm -f mbot DEADJOE config.cache

dist:
	rm -f *~ src/*~ inc/*~ mod/*~ example/*~
	cd .. && tar cfz mbot-@VERSION@.tgz \
		mbot/README mbot/INSTALL mbot/COPYING mbot/NEWS mbot/AUTHORS \
		mbot/VERSION mbot/ChangeLog \
		\
		mbot/example/* \
		\
		mbot/src/*.cpp mbot/inc/*.h mbot/mod/*.cpp \
		\
		mbot/acconfig.h mbot/inc/config.h.in mbot/configure.in \
		mbot/configure mbot/Makefile.in mbot/src/Makefile.in \
		mbot/mod/Makefile.in mbot/install-sh mbot/mkinstalldirs \
		mbot/missing mbot/config.sub mbot/config.guess
