summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1ee22b3..9a7d72a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,8 @@
.PHONY: clean, mrproper, Init.rfs
-Files = Source/Kernel/Melon.ke Init.rfs
-Floppy = Melon.img
-
Projects = Kernel Tools/MakeRamFS
+Kernel = Source/Kernel/Melon.ke
RamFS = Init.rfs
RamFSFiles = :/System :/System/Applications :/System/Configuration :/System/Keymaps \
Source/Kernel/Ressources/Keymaps/fr.mkm:/System/Keymaps/fr.mkm \
@@ -13,11 +11,16 @@ RamFSFiles = :/System :/System/Applications :/System/Configuration :/System/Keym
Source/Kernel/Ressources/Texts/Info.txt:/Useless/Info.txt \
Source/Kernel/Ressources/Graphics/logo.text.cxd:/Useless/Melon-logo
+Files = $(Kernel) $(RamFS)
+Floppy = Melon.img
+
all:
for p in $(Projects); do \
make -C Source/$$p -s; \
done
+$(Files): all
+
rebuild:
for p in $(Projects); do \
make -C Source/$$p rebuild -s; \
@@ -36,7 +39,7 @@ mproper:
$(RamFS):
Source/Tools/MakeRamFS/MakeRamFS $(RamFS) $(RamFSFiles)
-floppy: $(RamFS)
+floppy: $(Files)
sudo mount $(Floppy) Mount -o loop
for f in $(Files); do \
sudo cp $$f Mount; \