e811379bc2
the pkglint warning: As {INSTALL,DEINSTALL}_TEMPLATE is modified using "+=", its name should indicate plural. This does make the variables a bit more suggestive of the fact that they hold lists of values.
40 lines
1.5 KiB
Makefile
40 lines
1.5 KiB
Makefile
# $NetBSD: omf.mk,v 1.12 2006/06/15 22:13:59 jlam Exp $
|
|
#
|
|
# This Makefile fragment is intended to be included by packages that install
|
|
# OMF files. It takes care of registering them in scrollkeeper's global
|
|
# database.
|
|
#
|
|
# The following variables are automatically defined for free use in packages:
|
|
# SCROLLKEEPER_DATADIR - scrollkeeper's data directory.
|
|
# SCROLLKEEPER_REBUILDDB - scrollkeeper-rebuilddb binary program.
|
|
# SCROLLKEEPER_UPDATEDB - scrollkeeper-update binary program.
|
|
#
|
|
|
|
.if !defined(SCROLLKEEPER_OMF_MK)
|
|
SCROLLKEEPER_OMF_MK= # defined
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# scrollkeeper's data directory.
|
|
SCROLLKEEPER_DATADIR= ${BUILDLINK_PREFIX.scrollkeeper}/libdata/scrollkeeper
|
|
|
|
# scrollkeeper binary programs.
|
|
SCROLLKEEPER_REBUILDDB= ${BUILDLINK_PREFIX.scrollkeeper}/bin/scrollkeeper-rebuilddb
|
|
SCROLLKEEPER_UPDATEDB= ${BUILDLINK_PREFIX.scrollkeeper}/bin/scrollkeeper-update
|
|
|
|
INSTALL_TEMPLATES+= ${.CURDIR}/../../textproc/scrollkeeper/files/install.tmpl
|
|
DEINSTALL_TEMPLATES+= ${.CURDIR}/../../textproc/scrollkeeper/files/install.tmpl
|
|
|
|
FILES_SUBST+= SCROLLKEEPER_DATADIR=${SCROLLKEEPER_DATADIR:Q}
|
|
FILES_SUBST+= SCROLLKEEPER_REBUILDDB=${SCROLLKEEPER_REBUILDDB:Q}
|
|
FILES_SUBST+= SCROLLKEEPER_UPDATEDB=${SCROLLKEEPER_UPDATEDB:Q}
|
|
|
|
PRINT_PLIST_AWK+= /^libdata\/scrollkeeper/ { next; }
|
|
PRINT_PLIST_AWK+= /^@dirrm libdata\/scrollkeeper/ { next; }
|
|
PRINT_PLIST_AWK+= /^@dirrm share\/omf$$/ \
|
|
{ print "@comment in scrollkeeper: " $$0; \
|
|
next; }
|
|
|
|
.include "../../textproc/scrollkeeper/buildlink3.mk"
|
|
|
|
.endif # SCROLLKEEPER_OMF_MK
|