Browse Source

be smarter, only write a new MAKEDEV if more than just the rcsid changed

OPENBSD_4_4
todd 16 years ago
parent
commit
6ba8116018
21 changed files with 41 additions and 66 deletions
  1. +21
    -6
      src/etc/Makefile.inc
  2. +1
    -3
      src/etc/etc.alpha/Makefile
  3. +1
    -3
      src/etc/etc.amd64/Makefile
  4. +1
    -3
      src/etc/etc.armish/Makefile
  5. +1
    -3
      src/etc/etc.aviion/Makefile
  6. +1
    -3
      src/etc/etc.hp300/Makefile
  7. +1
    -3
      src/etc/etc.hppa/Makefile
  8. +1
    -3
      src/etc/etc.hppa64/Makefile
  9. +1
    -3
      src/etc/etc.i386/Makefile
  10. +1
    -3
      src/etc/etc.landisk/Makefile
  11. +1
    -3
      src/etc/etc.luna88k/Makefile
  12. +1
    -3
      src/etc/etc.mac68k/Makefile
  13. +1
    -3
      src/etc/etc.macppc/Makefile
  14. +1
    -3
      src/etc/etc.mvme68k/Makefile
  15. +1
    -3
      src/etc/etc.mvme88k/Makefile
  16. +1
    -3
      src/etc/etc.sgi/Makefile
  17. +1
    -3
      src/etc/etc.socppc/Makefile
  18. +1
    -3
      src/etc/etc.sparc/Makefile
  19. +1
    -3
      src/etc/etc.sparc64/Makefile
  20. +1
    -3
      src/etc/etc.vax/Makefile
  21. +1
    -3
      src/etc/etc.zaurus/Makefile

+ 21
- 6
src/etc/Makefile.inc View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile.inc,v 1.1 2008/06/14 23:09:05 todd Exp $
# $OpenBSD: Makefile.inc,v 1.2 2008/06/15 01:51:55 todd Exp $
MAKEDEVSRC= ${.CURDIR}/../MAKEDEV.mi MAKEDEVSRC= ${.CURDIR}/../MAKEDEV.mi
MAKEDEVSRC+= ${.CURDIR}/../MAKEDEV.sub MAKEDEVSRC+= ${.CURDIR}/../MAKEDEV.sub
@ -6,8 +6,23 @@ MAKEDEVSRC+= ${.CURDIR}/../MAKEDEV.common
MAKEDEVSRC+= MAKEDEV.md MAKEDEVSRC+= MAKEDEV.md
MAKEDEV: ${MAKEDEVSRC} MAKEDEV: ${MAKEDEVSRC}
@echo m4 -I.. ../MAKEDEV.mi '>' MAKEDEV
@m4 -I${.CURDIR}/.. \
${.CURDIR}/../MAKEDEV.mi > .MAKEDEV.tmp && \
mv .MAKEDEV.tmp MAKEDEV || \
rm .MAKEDEV.tmp
@if m4 -I${.CURDIR}/.. -I${.CURDIR} \
${.CURDIR}/../MAKEDEV.mi > MAKEDEV.tmp; then \
if ! [ -f ${.CURDIR}/MAKEDEV ]; then \
echo " m4 -I.. -I. ../MAKEDEV.mi > MAKEDEV"; \
cp MAKEDEV.tmp ${.CURDIR}/MAKEDEV; \
rm MAKEDEV.tmp; \
exit 0; \
fi; \
diff MAKEDEV.tmp ${.CURDIR}/MAKEDEV > diffout1 || true; \
sed -e 's/^--.*$$//' \
-e 's/^[\<\>] #.*OpenBSD.*Exp $$//' \
-e 's/^[0-9]*c[0-9]*$$//' \
-e '/^$$/d' \
diffout1 > diffout2; \
if [ -s diffout2 ]; then \
echo " m4 -I.. -I. ../MAKEDEV.mi > MAKEDEV"; \
cp MAKEDEV.tmp ${.CURDIR}/MAKEDEV || true; \
fi; \
rm diffout1 diffout2; \
fi

+ 1
- 3
src/etc/etc.alpha/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:05 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:55 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.amd64/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:05 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:55 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.armish/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:05 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:55 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.aviion/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:05 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.hp300/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:05 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.hppa/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:05 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.hppa64/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:06 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.i386/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:06 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.landisk/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:06 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.luna88k/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:06 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.mac68k/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:06 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.macppc/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:06 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.mvme68k/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:06 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.mvme88k/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:06 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.sgi/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:06 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.socppc/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:06 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.sparc/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:06 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.sparc64/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:06 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.vax/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:06 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


+ 1
- 3
src/etc/etc.zaurus/Makefile View File

@ -1,6 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2008/06/14 23:09:06 todd Exp $
NOOBJ=
# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
all: MAKEDEV all: MAKEDEV


Loading…
Cancel
Save