Makefile 878 B

123456789101112131415161718192021222324252627282930313233
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. TARGETS:=mkcrypt
  5. TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
  6. TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
  7. all: install
  8. prepare:
  9. compile:
  10. install: $(TARGETS_INSTALL)
  11. clean: $(TARGETS_CLEAN)
  12. $(TOOLS_BUILD_DIR):
  13. mkdir -p $(TOOLS_BUILD_DIR)
  14. %-download:
  15. $(TRACE) "tools/$(patsubst %-download,%,$@)/download "
  16. $(MAKE) -C $(patsubst %-download,%,$@) fetch
  17. %-compile: $(TOOLS_BUILD_DIR)
  18. $(TRACE) "tools/$(patsubst %-compile,%,$@)/compile "
  19. $(MAKE) -C $(patsubst %-compile,%,$@) compile
  20. %-install:
  21. $(TRACE) "tools/$(patsubst %-install,%,$@)/install "
  22. $(MAKE) -C $(patsubst %-install,%,$@) install
  23. %-clean:
  24. $(TRACE) "tools/$(patsubst %-clean,%,$@)/clean "
  25. $(MAKE) -C $(patsubst %-clean,%,$@) clean