blob: 0f13dff997fbe662f74a25628f11bddbeed5436c (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
# $OpenBSD: Makefile.bsd-wrapper,v 1.9 1997/06/23 22:20:28 kstailey Exp $
#
# Build wrapper for Perl 5.003.
#
# Our lndir is hacked; specify a full path to avoid potential conflicts
# with the one installed with X11.
LNDIR= /usr/bin/lndir
H2PH= /usr/bin/h2ph
MAN= x2p/a2p.man x2p/s2p.man pod/perl.man pod/perlbook.man \
pod/perlbot.man pod/perlcall.man pod/perldata.man \
pod/perldebug.man pod/perldiag.man pod/perldsc.man \
pod/perlembed.man pod/perlform.man pod/perlfunc.man \
pod/perlguts.man pod/perlipc.man pod/perllol.man \
pod/perlmod.man pod/perlobj.man pod/perlop.man \
pod/perlovl.man pod/perlpod.man pod/perlre.man \
pod/perlref.man pod/perlrun.man pod/perlsec.man \
pod/perlstyle.man pod/perlsub.man pod/perlsyn.man \
pod/perltie.man pod/perltoc.man pod/perltrap.man \
pod/perlvar.man pod/perlxs.man pod/perlxstut.man
MANALL= ${MAN:S/.man$/.cat1/g}
MANLOCALBUILD= yes
.SUFFIXES: .man .cat1
.man.cat1:
@echo "${NROFF} -mandoc ${.IMPSRC} > ${.TARGET}"
@${NROFF} -mandoc ${.IMPSRC} > ${.TARGET} || (rm -f ${.TARGET}; false)
GENERATED= config.sh Makefile cflags config.h makeaperl makedepend \
makedir perl.exp writemain x2p/Makefile x2p/cflags
CLEANFILES= config.sh ${MANALL}
.BEGIN:
@if [ ${.CURDIR} != ${.OBJDIR} ]; then ${LNDIR} -s -e obj -e obj.${MACHINE_ARCH} -e Makefile.bsd-wrapper ${.CURDIR}; fi
all: ${GENERATED}
(cd ${.OBJDIR}; ${MAKE})
(cd ${.OBJDIR}/pod; ${MAKE} man)
config.sh: config.sh.OpenBSD
(cd ${.OBJDIR}; /bin/sh Configure -f config.sh.OpenBSD -dsE)
Makefile:
(cd ${.OBJDIR}; /bin/sh Makefile.SH)
cflags:
(cd ${.OBJDIR}; /bin/sh cflags.SH)
config.h:
(cd ${.OBJDIR}; /bin/sh config_h.SH)
makeaperl:
(cd ${.OBJDIR}; /bin/sh makeaperl.SH)
makedepend:
(cd ${.OBJDIR}; /bin/sh makedepend.SH)
makedir:
(cd ${.OBJDIR}; /bin/sh makedir.SH)
perl.exp:
(cd ${.OBJDIR}; /bin/sh perl_exp.SH)
writemain:
(cd ${.OBJDIR}; /bin/sh writemain.SH)
x2p/Makefile:
(cd ${.OBJDIR}/x2p; /bin/sh Makefile.SH)
x2p/cflags:
(cd ${.OBJDIR}/x2p; /bin/sh cflags.SH)
.ifdef NOMAN
maninstall:
@echo NOMAN is set
.endif
install: ${MANALL} maninstall
(cd ${.OBJDIR}; ${MAKE} install)
(cd ${DESTDIR}/usr/include; ${H2PH} *.h arpa/*.h machine/*.h net/*.h \
protocols/*.h sys/*.h)
-chmod -R a+rX ${DESTDIR}/usr/lib/perl5
clean:
-@if [ -e Makefile ]; then ${MAKE} realclean; fi
cleandir:
-@if [ -e Makefile ]; then ${MAKE} realclean; fi
-@rm -f ${CLEANFILES}
depend:
# Nothing here so far...
lint:
# Nothing here so far...
tags:
# Nothing here so far...
.include <bsd.obj.mk>
.include <bsd.subdir.mk>
.ifndef NOMAN
.include <bsd.man.mk>
.endif
|