blob: 3da639c951f27141042a4f7e0c348064f798e615 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# $OpenBSD: Makefile.inc,v 1.3 2008/06/15 01:56:59 deraadt Exp $
MAKEDEVSRC= ${.CURDIR}/../MAKEDEV.mi
MAKEDEVSRC+= ${.CURDIR}/../MAKEDEV.sub
MAKEDEVSRC+= ${.CURDIR}/../MAKEDEV.common
MAKEDEVSRC+= MAKEDEV.md
MAKEDEV: ${MAKEDEVSRC}
@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
|