aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorXander <xander@icth.xyz>2023-07-04 13:26:09 +0200
committerXander <xander@icth.xyz>2023-07-04 13:26:09 +0200
commit415f75c275c991949ef7c9d2c62d07e8eba761b5 (patch)
treef52ea1c30e179b717ca10c6d170b723e3c5132c6 /Makefile
parent5adc7cf997d481a6afb3ed95573d6eff44cbdd5b (diff)
downloadats-os-415f75c275c991949ef7c9d2c62d07e8eba761b5.tar.xz
ats-os-415f75c275c991949ef7c9d2c62d07e8eba761b5.zip
Overloading print + cleanup
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ffe60a8..10fdb4e 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ assembly_source_files := $(wildcard arch/$(arch)/boot/*.asm)
assembly_object_files := $(patsubst arch/$(arch)/boot/%.asm, \
build/arch/$(arch)/%.o, $(assembly_source_files))
-dats_source_files := $(wildcard kernel/*.dats)
+dats_source_files := $(wildcard kernel/*.dats kernel/**/*.dats)
dats_object_files := $(patsubst kernel/%.dats, \
build/kernel/%_dats.o, $(dats_source_files))
@@ -54,7 +54,7 @@ build/arch/$(arch)/%.o: arch/$(arch)/boot/%.asm
build/kernel/%_dats.c: kernel/%.dats
@mkdir -p $(shell dirname $@)
$(PATSCC) -ccats -o $@ $<
- @mv *_dats.c build/kernel/
+ @mv *_dats.c $@
build/kernel/%.o: build/kernel/%.c
@mkdir -p $(shell dirname $@)