1998-08-27 17:38:45 +00:00
|
|
|
#
|
1999-08-22 21:45:24 +00:00
|
|
|
# $Id: Makefile,v 1.7 1999/06/14 15:41:33 roger Exp $
|
1998-08-27 17:38:45 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DESTDIR?=/mnt
|
|
|
|
|
|
|
|
STAND_LINKS= bin sbin
|
|
|
|
USR_LINKS= bin sbin libexec
|
|
|
|
PL_LOCALE_LINKS= pl polish
|
|
|
|
US_LOCALE_LINKS= en english
|
|
|
|
|
|
|
|
.if ${LANGUAGE} == pl
|
|
|
|
LOCALE= pl_PL.ISO_8859-2
|
|
|
|
LOCALE_LINKS=${PL_LOCALE_LINKS}
|
|
|
|
FONT=iso02-8x16.fnt
|
|
|
|
KBD=pl_PL.ISO_8859-2.kbd
|
|
|
|
.else
|
|
|
|
LOCALE= en_US.ISO_8859-1
|
|
|
|
LOCALE_LINKS=${US_LOCALE_LINKS}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
all: tree links
|
|
|
|
|
|
|
|
tree:
|
|
|
|
mtree -deU -f mfs.mtree -p ${DESTDIR}
|
|
|
|
|
|
|
|
links: tree
|
|
|
|
(cd ${DESTDIR}; \
|
|
|
|
for i in ${STAND_LINKS}; \
|
|
|
|
do \
|
|
|
|
ln -s /stand $${i}; \
|
|
|
|
done; \
|
|
|
|
cd var/run; \
|
|
|
|
ln -s /dev/null log; \
|
|
|
|
cd ../../usr; \
|
|
|
|
for i in ${USR_LINKS}; \
|
|
|
|
do \
|
|
|
|
ln -s /stand $${i}; \
|
|
|
|
done; \
|
|
|
|
cd share/misc;\
|
|
|
|
ln -s /etc/termcap termcap; \
|
1998-08-31 13:39:01 +00:00
|
|
|
echo emacs >/mnt/usr/share/misc/init.ee; \
|
1998-08-27 17:38:45 +00:00
|
|
|
cd ../; \
|
|
|
|
cd locale; \
|
|
|
|
for i in ${LOCALE_LINKS}; \
|
|
|
|
do \
|
|
|
|
ln -s ${LOCALE} $${i}; \
|
|
|
|
done; \
|
|
|
|
cp /usr/share/locale/${LOCALE}/* ${LOCALE}/; \
|
|
|
|
if [ "X${FONT}" != "X" ]; \
|
|
|
|
then \
|
|
|
|
cp /usr/share/syscons/fonts/${FONT} ../syscons/; \
|
|
|
|
cp /usr/share/syscons/keymaps/${KBD} ../syscons/; \
|
|
|
|
fi; \
|
|
|
|
cd ../nls; \
|
|
|
|
for i in ${LOCALE_LINKS}; \
|
|
|
|
do \
|
|
|
|
ln -s ${LOCALE} $${i}; \
|
|
|
|
done;)
|
|
|
|
|
|
|
|
|
|
|
|
# We don't do it under 'all' because it's needed only on non-DEVFS systems
|
|
|
|
devnodes: tree
|
1998-09-20 00:46:27 +00:00
|
|
|
(cd ${DESTDIR}/dev; \
|
1999-05-05 08:37:46 +00:00
|
|
|
ln -s /dev/MAKEDEV; \
|
|
|
|
./MAKEDEV std sysmouse tun2 cuaa0 cuaa1 cuaa2 vty10 fd0 pty0; \
|
|
|
|
./MAKEDEV psm0; \
|
1999-06-14 15:45:56 +00:00
|
|
|
./MAKEDEV wd0s1h wd0s2 wd0s3 wd0s4 wd1s1h wd1s2 wd1s3 wd1s4 ;\
|
1999-05-05 08:37:46 +00:00
|
|
|
rm MAKEDEV)
|
1998-08-27 17:38:45 +00:00
|
|
|
|
|
|
|
clean:
|