Browse Source

rules to build the MAKEDEV files:

all       -> builds 'this' arch  (etc.$(uname -m)/MAKEDEV)
allarchs  -> builds all archs    (etc.*/MAKEDEV)
clean     -> cleans 'this' arch  (etc.$(uname -m)/MAKEDEV)
cleandirs -> cleans all archs    (etc.*/MAKEDEV)
also, build the MAKEDEV files during the release process
OPENBSD_3_1
todd 23 years ago
parent
commit
dee3138ca2
1 changed files with 26 additions and 2 deletions
  1. +26
    -2
      src/etc/Makefile

+ 26
- 2
src/etc/Makefile View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.135 2001/12/25 01:30:22 deraadt Exp $
# $OpenBSD: Makefile,v 1.136 2002/01/04 09:34:35 todd Exp $
TZDIR= /usr/share/zoneinfo
LOCALTIME= US/Pacific
@ -55,7 +55,7 @@ distribution-etc-root-var distribution distrib-dirs release snapshot:
@echo setenv DESTDIR before doing that!
@false
.else
distribution-etc-root-var: distrib-dirs
distribution-etc-root-var: distrib-dirs allarchs
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
cat etc.${MACHINE}/ttys ttys.pty > ${DESTDIR}/etc/ttys && \
chown ${BINOWN} ${DESTDIR}/etc/ttys && \
@ -318,4 +318,28 @@ snap_md:
.endif # DESTDIR check
MAKEDEVARCHS+=sparc64
all:
@make M=${MACHINE} m4
clean:
rm -f etc.${MACHINE}/MAKEDEV
cleandir:
@cd ${.CURDIR}; for m in ${MAKEDEVARCHS}; do \
make MACHINE=$$m clean; done
m4: etc.${M}/MAKEDEV
etc.${M}/MAKEDEV: MAKEDEV.sub MAKEDEV.mi etc.${M}/MAKEDEV.md
@echo "==> etc.${M}/MAKEDEV"
@m4 -DMACHINE=${M} MAKEDEV.mi > etc.${M}/.MAKEDEV.tmp && \
mv etc.${M}/.MAKEDEV.tmp etc.${M}/MAKEDEV || \
rm etc.${M}/.MAKEDEV.tmp
allarchs: MAKEDEV.sub MAKEDEV.mi
@cd ${.CURDIR}; for m in ${MAKEDEVARCHS}; do \
make M=$$m m4; done
.include <bsd.prog.mk>

Loading…
Cancel
Save