WRKSRC= ${WRKDIR} This is much cleaner, much more indicative of what happens, and removes another of the negative definitions (NO_.* = value).
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2001/09/09 20:36:20 agc Exp $
|
|
|
|
DISTNAME= haskell-mode
|
|
PKGNAME= haskell-mode-20001129
|
|
CATEGORIES= devel editors
|
|
MASTER_SITES= http://www.haskell.org/haskell-mode/
|
|
|
|
MAINTAINER= packages@netbsd.org
|
|
HOMEPAGE= http://www.haskell.org/haskell-mode/
|
|
COMMENT= Haskell mode for Emacs
|
|
|
|
DIST_SUBDIR= ${PKGNAME}
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if defined(USE_XEMACS)
|
|
DEPENDS+= xemacs-[0-9]*:../../editors/xemacs
|
|
EMACS= xemacs
|
|
LISPDIR= lib/xemacs/xemacs-packages/lisp/prog-modes
|
|
.else
|
|
DEPENDS+= emacs-[0-9]*:../../editors/emacs
|
|
EMACS= emacs
|
|
LISPDIR= share/emacs/site-lisp/haskell-mode
|
|
.endif
|
|
|
|
PLIST_SUBST+= LISPDIR=${LISPDIR}
|
|
|
|
SRCS= haskell-doc.el haskell-mode.el haskell-font-lock.el \
|
|
haskell-simple-indent.el haskell-hugs.el haskell-decl-scan.el \
|
|
haskell-indent.el
|
|
|
|
do-build:
|
|
for f in ${SRCS}; do \
|
|
${EMACS} --no-init-file --no-site-file -batch \
|
|
-f batch-byte-compile ${WRKSRC}/$$f; \
|
|
done
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${LISPDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${SRCS} ${SRCS:.el=.elc} \
|
|
${PREFIX}/${LISPDIR}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|