2005-04-21 16:53:53 +02:00
|
|
|
# Makefile for cmd/scripts.
|
|
|
|
|
|
|
|
CFLAGS = -D_MINIX -D_POSIX_SOURCE
|
|
|
|
CCLD = $(CC) -i $(CFLAGS)
|
|
|
|
MAKE = exec make -$(MAKEFLAGS) install
|
|
|
|
|
|
|
|
all: # Does nothing
|
|
|
|
|
|
|
|
install: usr root
|
|
|
|
|
|
|
|
# Commands on the /usr partition.
|
|
|
|
usr: \
|
|
|
|
/usr/bin/DESCRIBE \
|
|
|
|
/usr/bin/M \
|
|
|
|
/usr/bin/U \
|
|
|
|
/usr/bin/MAKEDEV \
|
|
|
|
/usr/bin/adduser \
|
|
|
|
/usr/bin/cd \
|
|
|
|
/usr/bin/[ \
|
|
|
|
/usr/bin/command \
|
|
|
|
/usr/bin/echo \
|
|
|
|
/usr/bin/expr \
|
|
|
|
/usr/bin/false \
|
|
|
|
/usr/bin/getopts \
|
|
|
|
/usr/bin/read \
|
|
|
|
/usr/bin/test \
|
|
|
|
/usr/bin/true \
|
|
|
|
/usr/bin/umask \
|
|
|
|
/usr/bin/wait \
|
|
|
|
/usr/bin/checkhier \
|
|
|
|
/usr/bin/clear \
|
|
|
|
/usr/bin/clr \
|
|
|
|
/usr/bin/makewhatis \
|
|
|
|
/usr/bin/mkdist \
|
|
|
|
/usr/bin/setup \
|
|
|
|
/usr/bin/spell \
|
|
|
|
/usr/bin/srccrc \
|
|
|
|
/usr/bin/svclog \
|
|
|
|
/usr/bin/whatis \
|
|
|
|
/usr/bin/apropos \
|
|
|
|
/usr/bin/whereis \
|
|
|
|
|
|
|
|
# Commands on the root partition.
|
|
|
|
root: \
|
|
|
|
/bin/M \
|
|
|
|
/bin/U \
|
|
|
|
/bin/cd \
|
|
|
|
/bin/[ \
|
|
|
|
/bin/command \
|
|
|
|
/bin/echo \
|
|
|
|
/bin/expr \
|
|
|
|
/bin/false \
|
|
|
|
/bin/getopts \
|
|
|
|
/bin/read \
|
|
|
|
/bin/test \
|
|
|
|
/bin/true \
|
|
|
|
/bin/umask \
|
|
|
|
/bin/wait \
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
|
|
|
/usr/bin/DESCRIBE: DESCRIBE.sh
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/M: M.sh
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/U: /usr/bin/M
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -l $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/MAKEDEV: MAKEDEV.sh
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/adduser: adduser.sh
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/cd: cd.sh
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/[ /usr/bin/command /usr/bin/echo /usr/bin/expr /usr/bin/false \
|
|
|
|
/usr/bin/getopts /usr/bin/read /usr/bin/test /usr/bin/true /usr/bin/umask \
|
|
|
|
/usr/bin/wait: /usr/bin/cd
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -l $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/checkhier: checkhier.sh
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/clear: clear.sh
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/clr: /usr/bin/clear
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -l $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/makewhatis: makewhatis.sh
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/mkdist: mkdist.sh
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/setup: setup.sh
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/spell: spell.sh
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/srccrc: srccrc.sh
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/svclog: svclog.sh
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/whatis: whatis.sh
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/apropos: /usr/bin/whatis
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -l $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/usr/bin/whereis: whereis.sh
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/bin/M: /usr/bin/M
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -c -o bin $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/bin/U: /bin/M
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -l $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/bin/cd: /usr/bin/cd
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -lc $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/bin/[ /bin/command /bin/echo /bin/expr /bin/false /bin/getopts \
|
|
|
|
/bin/read /bin/test /bin/true /bin/umask /bin/wait: /bin/cd
|
2005-05-04 11:37:12 +02:00
|
|
|
install -m 755 -l $? $@
|