fix target system names
[openadk.git] / tools / Makefile
blob5d0f918724e763b55c8d0020581b1e16b81e434a
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(TOPDIR)/rules.mk
6 TARGETS:=adk mkcrypt cpio
7 TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
8 TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
10 all: install
11 compile:
12 install: $(TARGETS_INSTALL)
13 clean: $(TARGETS_CLEAN)
15 %-compile: $(TOOLS_BUILD_DIR)
16 $(TRACE) "tools/$(patsubst %-compile,%,$@)/compile "
17 $(MAKE) -C $(patsubst %-compile,%,$@) compile
19 %-install:
20 $(TRACE) "tools/$(patsubst %-install,%,$@)/install "
21 $(MAKE) -C $(patsubst %-install,%,$@) install
23 %-clean:
24 $(TRACE) "tools/$(patsubst %-clean,%,$@)/clean "
25 $(MAKE) -C $(patsubst %-clean,%,$@) clean