diff --git a/Makefile b/Makefile index 6e8d11897..e5883aca7 100755 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ usage: @echo " make libraries # Compile and install libraries" >&2 @echo " make cmds # Compile commands, but don't install" >&2 @echo " make install # Compile and install commands" >&2 + @echo " make depend # Generate required .depend files" >&2 @echo " make clean # Remove all compiler results" >&2 @echo "" >&2 @echo "Run 'make' in tools/ to create a new MINIX configuration." >&2; exit 0 @@ -38,6 +39,12 @@ cmds: install:: cd commands && $(MAKE) $@ +depend:: + /usr/bin/mkdep /usr/src/kernel + /usr/bin/mkdep /usr/src/servers + /usr/bin/mkdep /usr/src/drivers + + clean:: cd lib && $(MAKE) $@ test ! -f commands/Makefile || { cd commands && $(MAKE) $@; } diff --git a/tools/Makefile b/tools/Makefile index 096ecd2f6..b0f4e837e 100755 --- a/tools/Makefile +++ b/tools/Makefile @@ -10,6 +10,7 @@ MAKE= exec make -$(MAKEFLAGS) PROGRAMS= ../kernel/kernel \ ../servers/pm/pm \ ../servers/fs/fs \ + ../servers/sm/sm \ ../servers/is/is \ ../drivers/tty/tty \ ../drivers/memory/memory \ @@ -56,7 +57,10 @@ image: programs includes: cd ../include && $(MAKE) install -programs: includes +depend: + cd ../ && $(MAKE) depend + +programs: includes depend cd ../kernel && $(MAKE) cd ../servers && $(MAKE) install cd ../drivers && $(MAKE) install