1# $NetBSD: Makefile,v 1.13 2008/09/03 11:58:30 lukem Exp $ 2 3.include "../Makefile.inc" 4LIBISPRIVATE= yes 5 6LIB= common 7SRCS+= substring.c xexit.c xmalloc.c xstrdup.c key.c doc.c 8 9CPPFLAGS+= -DGNULOCALEDIR=\"/usr/share/locale\" \ 10 -DLOCALE_ALIAS_PATH=\"/usr/share/locale:.\" \ 11 -I${IDIST}/info 12 13.include <bsd.lib.mk> 14 15.PATH: ${IDIST}/lib ${IDIST}/po 16 17all: ${FILES} 18.SUFFIXES: .gmo .mo 19.gmo.mo: 20 ${_MKTARGET_CREATE} 21 @cp $< $@ 22 23GEN_SRCS = funs.h key.c doc.c 24CLEANFILES+= ${GEN_SRCS} 25 26CMD_SRCS = session.c echo-area.c infodoc.c m-x.c indices.c nodemenu.c \ 27 footnotes.c variables.c 28 29MAKEDOCDIR!=cd ${.CURDIR}/../makedoc && ${PRINTOBJDIR} 30MAKEDOC=${MAKEDOCDIR}/makedoc 31 32${GEN_SRCS}: ${MAKEDOC} ${CMD_SRCS} 33 ${_MKMSG_CREATE} ${GEN_SRCS} 34 ${.ALLSRC} 35 36.PATH: ${IDIST}/info ${IDIST}/doc 37