1995-08-06 14:24:38 +02:00
|
|
|
# $Id: Makefile,v 1.6 1995/05/30 03:50:08 rgrimes 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-05-30 05:57:47 +02:00
|
|
|
DPADD+= ${LIBDIALOG} ${LIBNCURSES} ${LIBMYTINFO}
|
1995-04-21 12:05:46 +02:00
|
|
|
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 || \
|
1995-08-06 14:24:38 +02:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
|
1995-02-15 21:47:56 +01:00
|
|
|
$$m ${DESTDIR}${HELPDIR} ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|