distname = mimas-0.1 distsubdirs = mimas tools libs test doc distfiles = README.txt \ COPYING.txt \ Makefile \ mimas.8xk \ mimas/Makefile \ mimas/*.pl \ mimas/*.asm \ mimas/*.inc \ mimas/*.dat \ mimas/*.lst \ tools/Makefile \ tools/*.c \ tools/*.h \ tools/*.exe \ libs/Makefile \ libs/*.inc \ libs/*.8xv \ test/*.asm \ test/expected.bin \ doc/Makefile \ doc/manual.html \ doc/manual.8xk \ doc/mkmanual.pl \ doc/*.gif all: $(MAKE) -C mimas $(MAKE) -C tools $(MAKE) -C libs $(MAKE) -C doc clean: $(MAKE) -C mimas clean $(MAKE) -C tools clean $(MAKE) -C libs clean superclean: clean $(MAKE) -C mimas superclean $(MAKE) -C tools superclean $(MAKE) -C doc clean w32tools: $(MAKE) -C tools clean all CC=i586-mingw32msvc-gcc _exe=.exe i586-mingw32msvc-strip tools/*.exe rm -f tools/*.o dist: rm -rf $(distname) rm -f $(distname).zip mkdir $(distname) set -e ; for d in $(distsubdirs) ; do \ mkdir $(distname)/$$d ; \ done set -e ; for f in $(distfiles) ; do \ cp -p $$f $(distname)/$$f ; \ done zip -9 $(distname).zip -r $(distname) .PHONY: all clean superclean w32tools dist