blob: 7efd89efa76570eacb511dc01a71ff32954814a8 (
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
|
.BEGIN:
@if [ ${.CURDIR} != ${.OBJDIR} ]; then ${LNDIR} -s -e obj -e obj.${MACHINE_ARCH} -e Makefile.bsd-wrapper ${.CURDIR}; fi
MAN=pkg_add.1 pkg_info.1 pkg_create.1 pkg_delete.1 pkg.1
depend Makefile:
perl ${.CURDIR}/Makefile.PL \
INSTALLSCRIPT='$${DESTDIR}/usr/sbin' \
INSTALLPRIVLIB='$${DESTDIR}/usr/libdata/perl5/'
all: Makefile
cd ${.OBJDIR} && exec ${MAKE}
install: maninstall
cd ${.OBJDIR} && exec ${MAKE} pure_install
clean:
cd ${.OBJDIR} && exec ${MAKE} clean
# XXX don't remove srcdir
cleandir:
-@if [ ${.CURDIR} != ${.OBJDIR} ]; then \
cd ${.OBJDIR} && rm -fr *; \
else \
test -e Makefile && exec ${MAKE} realclean; \
fi
# Our lndir is hacked; specify a full path to avoid potential conflicts
# with the one installed with X11.
LNDIR= /usr/bin/lndir
.include <bsd.obj.mk>
.include <bsd.subdir.mk>
.include <bsd.man.mk>
|