summaryrefslogtreecommitdiff
path: root/devel/haskell-mode/Makefile
blob: 6d66b68341794b022d86d209676a9a56a0c21680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $NetBSD: Makefile,v 1.3 2001/02/16 14:38:30 wiz Exp $

DISTNAME=		haskell-mode-20001129
CATEGORIES=		devel editors
MASTER_SITES=		${MASTER_SITE_LOCAL}

MAINTAINER=		jtb@netbsd.org
HOMEPAGE=		http://www.haskell.org/haskell-mode/
COMMENT=		Haskell mode for Emacs

NO_SRC_ON_FTP=		Already in MASTER_SITE_LOCAL

.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}
	@for f in ${SRCS} ${SRCS:.el=.elc} ; do				\
		i="${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/${LISPDIR}";	\
		${ECHO} $$i; $$i;					\
	done

.include "../../mk/bsd.pkg.mk"