1995-05-27 22:05:35 +02:00
|
|
|
# $Id: Makefile,v 1.4 1995/04/24 13:00:49 jkh Exp $
|
1995-02-15 21:47:56 +01:00
|
|
|
|
|
|
|
PROG= pkg_manage
|
1995-04-21 12:05:46 +02:00
|
|
|
SRCS= pkg_main.c pkg_manage.c pkg_ui.c version.c
|
1995-04-21 12:23:23 +02:00
|
|
|
LDADD+= -ldialog -lncurses -lmytinfo
|
1995-04-21 12:05:46 +02:00
|
|
|
DPADD+= ${LIBDIALOG} ${LIBNCURSES} ${LIBMYTINFO}
|
|
|
|
CFLAGS+= -Wall -Wstrict-prototypes -DHELP_PATH=\"${HELPDIR}/\" \
|
1995-04-21 12:23:23 +02:00
|
|
|
-I${.CURDIR}/../../gnu/lib/libdialog \
|
|
|
|
-I${.CURDIR}/../../lib/libncurses
|
1995-02-15 21:47:56 +01:00
|
|
|
|
1995-04-21 12:23:23 +02:00
|
|
|
HELPDIR = /usr/share/misc/pkg_manage
|
1995-02-15 21:47:56 +01:00
|
|
|
|
1995-05-27 22:05:35 +02:00
|
|
|
HELPS= pkg_install.hlp pkg_preview_fs.hlp \
|
|
|
|
pkg_del_inst.hlp pkg_main.hlp \
|
|
|
|
pkg_ds_install.hlp pkg_preview.hlp \
|
|
|
|
pkg_view_inst.hlp
|
1995-02-15 21:47:56 +01:00
|
|
|
|
|
|
|
afterinstall:
|
1995-04-21 12:23:23 +02:00
|
|
|
@if [ ! -d ${HELPDIR} ]; then rm -f ${HELPDIR}; mkdir -p ${HELPDIR}; fi
|
|
|
|
@cd ${.CURDIR}; \
|
1995-02-15 21:47:56 +01:00
|
|
|
for m in ${HELPS} ; do \
|
|
|
|
cmp -s $$m ${DESTDIR}${HELPDIR}/$$m || \
|
|
|
|
install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
|
|
|
|
$$m ${DESTDIR}${HELPDIR} ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|