2005-04-21 16:53:53 +02:00
|
|
|
# Master Makefile to compile everything in /usr/src except the system.
|
|
|
|
|
|
|
|
MAKE = exec make -$(MAKEFLAGS)
|
|
|
|
|
|
|
|
usage:
|
|
|
|
@echo "" >&2
|
|
|
|
@echo "Master Makefile for MINIX commands and utilities." >&2
|
2005-05-04 11:31:32 +02:00
|
|
|
@echo "Root privileges are required for some actions." >&2
|
|
|
|
@echo "" >&2
|
2005-04-21 16:53:53 +02:00
|
|
|
@echo "Usage:" >&2
|
|
|
|
@echo " make world # Compile everything (libraries & commands)" >&2
|
2005-05-02 16:30:04 +02:00
|
|
|
@echo " make includes # Install include files from src/" >&2
|
2005-04-21 16:53:53 +02:00
|
|
|
@echo " make libraries # Compile and install libraries" >&2
|
2005-06-17 15:42:06 +02:00
|
|
|
@echo " make cmds # Compile commands, but don't install" >&2
|
2005-04-21 16:53:53 +02:00
|
|
|
@echo " make install # Compile and install commands" >&2
|
2005-06-24 18:25:12 +02:00
|
|
|
@echo " make depend # Generate required .depend files" >&2
|
2005-04-21 16:53:53 +02:00
|
|
|
@echo " make clean # Remove all compiler results" >&2
|
|
|
|
@echo "" >&2
|
|
|
|
@echo "Run 'make' in tools/ to create a new MINIX configuration." >&2; exit 0
|
|
|
|
@echo "" >&2
|
|
|
|
|
|
|
|
# world has to be able to make a new system, even if there
|
|
|
|
# is no complete old system. it has to install commands, for which
|
|
|
|
# it has to install libraries, for which it has to install includes,
|
|
|
|
# for which it has to install /etc (for users and ownerships).
|
|
|
|
# etcfiles also creates a directory hierarchy in its
|
|
|
|
# 'make install' target.
|
2005-06-17 15:42:06 +02:00
|
|
|
world: etcfiles includes libraries cmds install
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-05-02 16:30:04 +02:00
|
|
|
includes:
|
|
|
|
cd include && $(MAKE) install
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
libraries:
|
|
|
|
cd lib && $(MAKE) install
|
|
|
|
|
2005-06-17 15:42:06 +02:00
|
|
|
cmds:
|
2005-06-17 18:28:36 +02:00
|
|
|
cd commands && $(MAKE) all
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-04-22 17:53:24 +02:00
|
|
|
install::
|
2005-06-17 18:28:36 +02:00
|
|
|
cd commands && $(MAKE) $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-06-24 18:25:12 +02:00
|
|
|
depend::
|
|
|
|
/usr/bin/mkdep /usr/src/kernel
|
|
|
|
/usr/bin/mkdep /usr/src/servers
|
|
|
|
/usr/bin/mkdep /usr/src/drivers
|
|
|
|
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
clean::
|
|
|
|
cd lib && $(MAKE) $@
|
|
|
|
test ! -f commands/Makefile || { cd commands && $(MAKE) $@; }
|
|
|
|
|
|
|
|
etcfiles::
|
|
|
|
cd etc && $(MAKE) install
|
|
|
|
|
|
|
|
all install clean::
|
|
|
|
cd boot && $(MAKE) $@
|
2005-06-27 13:59:36 +02:00
|
|
|
cd man && $(MAKE) $@ # First manpages, then commands
|
2005-04-21 16:53:53 +02:00
|
|
|
test ! -f commands/Makefile || { cd commands && $(MAKE) $@; }
|
|
|
|
cd tools && $(MAKE) $@
|
2005-05-03 10:48:26 +02:00
|
|
|
cd servers && $(MAKE) $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|