summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/Makefile.bsd-wrapper
blob: f0b44ceca00b74b5dd318366a492ab06d6e30e26 (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
# $OpenBSD: Makefile.bsd-wrapper,v 1.112 2022/04/12 02:54:51 afresh1 Exp $
#
# Build wrapper for Perl
#

CONFIGURE_ARGS=	-dse -Dopenbsd_distribution=defined

.if !exists(${.OBJDIR}/config.over)
CONFIGURE_ARGS+= -Dmksymlinks
.endif

.MAIN: all

CLEANFILES=	config.sh

config.sh:	${.CURDIR}/config.over ${.CURDIR}/hints/openbsd.sh
	cd ${.OBJDIR} && PATH="/bin:/usr/bin:/sbin:/usr/sbin" \
	    exec /bin/sh ${.CURDIR}/Configure ${CONFIGURE_ARGS}

# nothing!
depend:
	@:

test: all
	${MAKE} test

clean:
	-@test ! -e Makefile || ${MAKE} realclean

cleandir:
	-@if [ ${.CURDIR} != ${.OBJDIR} ]; then \
	    rm -rf *; \
	else \
	    test ! -e Makefile || ${MAKE} distclean; \
	    rm -f ${CLEANFILES}; \
	fi
	cd ${.CURDIR} && ${MAKE} -f Makefile.bsd-wrapper1 cleandir

all:	config.sh
	cd ${.CURDIR} && exec ${MAKE} -f Makefile.bsd-wrapper1 perl.build
	cd ${.CURDIR} && exec ${MAKE} -f Makefile.bsd-wrapper1 mansrc.build

install:
	cd ${.CURDIR} && exec ${MAKE} -f Makefile.bsd-wrapper1 install

.include <bsd.obj.mk>