freebsd-dev/gnu/usr.bin/perl/library/Makefile
Mark Murray b463622b82 Bunch-o'-tweaks.
1) (Biggest) I tried long-and-hard to keep the version number (5.006)
   backwards compatible with FreeBSD; I have lost this battle, and
   must defer to the Perl convention (5.6.0). Victims include suidperl.
   this means that dirs with a name of 5.006 will be replaced with
   dirs named 5.6.0 in both /usr/libdata/perl  and /usr/local/lib/perl.

2) Errno module is added.

3) Alpha bits extensively tweeked after a Beast-build.

Other commits to follow.
2000-07-02 15:45:05 +00:00

53 lines
1.7 KiB
Makefile

# $FreeBSD$
SUBDIR= B ByteLoader DB_File Dumper DProf Errno Peek Fcntl Glob IO SysV \
NDBM_File Opcode POSIX SDBM_File Socket Hostname Syslog attrs re
all: man3pages
beforeinstall:
@cd ${.OBJDIR}/lib ;\
for i in `find . \! -type d \! -name \*.3.gz` ; do \
j=`echo $$i|sed -e 's|auto/DynaLoader|mach/auto/DynaLoader|'` ;\
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
$$i ${DESTDIR}/usr/libdata/perl/${VERSION}/$$j ;\
done
@cd ${.OBJDIR}/lib ;\
${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
*.3.gz ${DESTDIR}/usr/share/perl/man/man3
@cd ${.OBJDIR} ;\
${INSTALL} ${COPY} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
*.h ${DESTDIR}/usr/libdata/perl/${VERSION}/mach/CORE
@cd ${.OBJDIR} ;\
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
Config.pm ${DESTDIR}/usr/libdata/perl/${VERSION}/mach
.include <bsd.prog.mk>
man3pages: ${DYNALOADER} pod2man
@cd ${.OBJDIR}/lib ;\
for i in `find . -name \*.pm | grep -v Functions.pm` ; do \
j=`echo $$i | sed -e 's|./||' -e 's|/|::|g' -e 's|.pm|.3|'` ;\
echo Manifying $$j ;\
${MINIPERL} -I${.OBJDIR}/lib ${.OBJDIR}/pod2man $$i > $$j ;\
gzip -fn $$j ;\
done
@cd ${.OBJDIR}/ext ;\
for i in `find . -name \*.pm -o -name \*.pod | grep -v POSIX.pm` ; do \
j=`echo $$i | sed -e 's|./||' -e 's|/SysV/|/IPC/|' \
-e 's|/Dumper/|/Data/|' -e 's|/lib/|/|' \
-e 's|^[^/]*/||' \
-e 's|/|::|g' -e 's|.pm|.3|' -e 's|.pod|.3|'`;\
i=`echo $$i | sed -e 's|./||'` ;\
echo Manifying $$j ;\
${MINIPERL} -I${.OBJDIR}/lib ${.OBJDIR}/pod2man $$i > ../lib/$$j ;\
gzip -fn ../lib/$$j ;\
done
@touch ${.TARGET}
pod2man: scripts autosplit ${PERL5SRC}/pod/pod2man.PL
ln -sf ${PERL5SRC}/pod/pod2man.PL
${MINIPERL} -I${.OBJDIR}/lib pod2man.PL
.PATH: ${PERL5SRC}