forked from Cesura/nxsh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 660 Bytes
/
Makefile
File metadata and controls
28 lines (21 loc) · 660 Bytes
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
.PHONY: clean all sys nro rebuild dist
all: nro sys
nro:
@$(MAKE) rebuild
@$(MAKE) -f Makefile_nro
sys:
@$(MAKE) rebuild
@$(MAKE) -f Makefile_sys
dist:
@$(MAKE) rebuild
@$(MAKE) -f Makefile_nro dist
@$(MAKE) rebuild
@$(MAKE) -f Makefile_sys dist
clean:
@$(MAKE) -f Makefile_sys clean
@$(MAKE) -f Makefile_nro clean
@rm -rf release
files := $(wildcard source/*) $(wildcard include/*)
REBUILD := $(foreach f, $(files), $(if $(findstring __SYS__, $(shell cat $(f))), $(f))) # Gets a list of all the files that have __SYS__ in them
rebuild:
@touch $(REBUILD) # Renews the last modified date for all the files in REBUILD so that they get rebuilt