-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (30 loc) · 978 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This file is part of Racdoor.
# Copyright (c) 2024 chaoticgd. All rights reversed.
# Released under the BSD-1-Clause license.
# Disable implicit rules.
MAKEFLAGS += -r
SUBDIRS = sdk extras tools tables samples
all: host ee
# Run 'make host' on each subdirectory in order.
HOST_SUBDIRS = $(addprefix host-,$(SUBDIRS))
.PHONY: host $(HOST_SUBDIRS)
host: $(HOST_SUBDIRS)
$(HOST_SUBDIRS):
TARGET=host $(MAKE) -C $(patsubst host-%,%,$@) host
# Run 'make ee' on each subdirectory in order.
EE_SUBDIRS = $(addprefix ee-,$(SUBDIRS))
.PHONY: ee $(EE_SUBDIRS)
ee: $(EE_SUBDIRS)
$(EE_SUBDIRS): host
TARGET=ee $(MAKE) -C $(patsubst ee-%,%,$@) ee
.PHONY: doc
doc:
$(MAKE) -C doc
# Run 'make clean' on each subdirectory in order.
CLEAN_SUBDIRS = $(addprefix clean-,$(SUBDIRS))
.PHONY: clean $(CLEAN_SUBDIRS)
clean: $(CLEAN_SUBDIRS)
$(MAKE) -C doc clean
$(CLEAN_SUBDIRS):
TARGET=host $(MAKE) -C $(patsubst clean-%,%,$@) clean
TARGET=ee $(MAKE) -C $(patsubst clean-%,%,$@) clean