include .config

all: build
	@#

build: build-tools build-library build-tests build-images build-sounds build-fonts
	@echo Finished building

install: all
	@echo Finished install

tests:
	$(MAKE) clean
	$(MAKE) build CC_FLAGS="$(CC_FLAGS) -DBUILD_TEST_CASES"

backup: clean
	tar czf backups/mylo-`date +"%y-%m-%d-%H"`.tar.gz *

clean:
	rm -rf .obj host target

clean2: clean-tools clean-library clean-tests clean-images clean-sounds clean-fonts
	rm -rf .obj/dirs
	rm -rf $(DIRS)

.obj/dirs:
	mkdir -p $(DIRS)
	touch .obj/dirs
	@echo Finished building directories

include src/host/tools/Makefile
include src/library/Makefile
include src/tests/Makefile
include src/pics/Makefile
include src/sounds/Makefile
include src/fonts/Makefile

Makefile:
	@#

src/host/tools/Makefile:
	@#

src/library/Makefile:
	@#

src/tests/Makefile:
	@#

src/pics/Makefile:
	@#

src/sounds/Makefile:
	@#

.PHONY: all \
	build build-tools build-library build-tests build-images build-sounds build-fonts \
	clean clean-tools clean-library clean-tests clean-images clean-sounds clean-fonts \
	install

