source: trunk/minix/commands/Makefile@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.3 KB
RevLine 
[9]1# Makefile for commands.
2
3MAKE = exec make -$(MAKEFLAGS)
4BZIP2=bzip2-1.0.3
5
6SMALLPROGRAMS=`arch` aal advent ash autil awk bc byacc cawf cron de dhcpd dis88 elle elvis ftp ftpd200 httpd ibm indent m4 make mdb mined patch pax ps reboot rlogind scripts sh simple syslogd talk talkd telnet telnetd urlget yap zmodem
7
8usage:
9 @echo "Usage: make all # Compile all commands" >&2
10 @echo " make install # Install the result (run as bin!)" >&2
11 @echo " make clean # Delete .o files and other junk" >&2
12 @echo " make big # Compile all big commands" >&2
13 @echo " make biginstall # Install all big commands" >&2
14 @echo " make small # Install all small commands" >&2
15 @echo " make smallinstall # Install all small commands" >&2
16 @echo " "
17 @echo "big compiles the commands the require large compiler sizes."
18 @echo "small compiles the rest. all compiles all."
19 @false
20
21all: small big
22
23install: biginstall smallinstall
24
25big:
26 cd $(BZIP2) && /bin/sh build build
27
28biginstall: big
29 cd $(BZIP2) && make install
30
31clean::
32 cd $(BZIP2) && make clean
33 for p in $(SMALLPROGRAMS); do ( cd $$p && make clean ); done
34
35small::
36 set -e; for p in $(SMALLPROGRAMS); do ( cd $$p && make all ); done
37
38smallinstall::
39 set -e; for p in $(SMALLPROGRAMS); do ( cd $$p && make install ); done
40
Note: See TracBrowser for help on using the repository browser.