port of netbsd's tr
[minix.git] / commands / Makefile
blob0f9dd20e4e3627e4a927f231a474358a7bb2dfaf
1 # Makefile for commands.
3 MAKE = exec make -$(MAKEFLAGS)
4 BZIP2=bzip2-1.0.3
5 FLEX=flex-2.5.4
7 SMALLPROGRAMS=`arch` aal advent ash autil awk.old awk byacc cawf cron de dhcpd dis88 elle elvis ftp101 ftpd200 ibm indent m4 make mdb mined patch pax profile ps reboot rlogind scripts sh simple syslogd swifi talk talkd telnet telnetd urlget yap zoneinfo
9 usage:
10 @echo "Usage: make all # Compile all commands" >&2
11 @echo " make install # Install the result (run as bin!)" >&2
12 @echo " make clean # Delete .o files and other junk" >&2
14 all:
15 cd zmodem && make
16 cd $(BZIP2) && /bin/sh build build
17 set -e; for p in $(SMALLPROGRAMS); do ( cd $$p && make all ); done
19 install:
20 set -e; for p in $(SMALLPROGRAMS); do ( cd $$p && make install ); done
21 cd zmodem && make install
22 cd $(BZIP2) && make install
23 cd $(FLEX) && sh build
25 clean::
26 cd $(BZIP2) && make clean
27 cd zmodem && make clean
28 if [ -f $(FLEX)/Makefile ]; then cd $(FLEX) && make distclean ; fi
29 for p in $(SMALLPROGRAMS); do ( cd $$p && make clean ); done