make recursive targets phony

This commit is contained in:
Benji Dial 2024-07-30 09:18:57 -04:00
parent 6cf7cd267b
commit 86b343f171

View file

@ -100,6 +100,7 @@ ${LIBSTDCPP_DEP}: ${LIBGCC_DEP}
patch toolchain/usr/x86_64-elf/include/c++/14.1.0/memory patches/gcc-memory.patch
touch $@
.PHONY: ${EULER_DEP}
${EULER_DEP}: ${LIBRARY_DEPS}
+make -C euler build/crt0.o build/libc.a build/libg.a build/libm.a
mkdir -p ${LIB_DIR}
@ -107,25 +108,31 @@ ${EULER_DEP}: ${LIBRARY_DEPS}
euler/build/libg.a euler/build/libm.a ${LIB_DIR}/
touch $@
.PHONY: ${DAGUERRE_DEP}
${DAGUERRE_DEP}: ${LIBRARY_DEPS}
+make -C libraries/daguerre build/libdaguerre.a
cp libraries/daguerre/build/libdaguerre.a ${LIB_DIR}/
touch $@
.PHONY: ${PAKE_DEP}
${PAKE_DEP}: ${LIBRARY_DEPS}
+make -C libraries/pake build/libpake.a
cp libraries/pake/build/libpake.a ${LIB_DIR}/
touch $@
.PHONY: kernel/build/kernel.elf
kernel/build/kernel.elf: ${GCC_DEP} ${MINTSUKI_HEADERS_DEP} ${LIMINE_DEP}
+make -C kernel build/kernel.elf
.PHONY: applications/init/build/init.elf
applications/init/build/init.elf: ${APP_DEPS}
+make -C applications/init build/init.elf
.PHONY: applications/goldman/build/goldman.elf
applications/goldman/build/goldman.elf: ${APP_DEPS} ${DAGUERRE_DEP}
+make -C applications/goldman build/goldman.elf
.PHONY: applications/hello/build/hello.elf
applications/hello/build/hello.elf: ${APP_DEPS} ${DAGUERRE_DEP} ${PAKE_DEP}
+make -C applications/hello build/hello.elf