Index: lisp/Makefile.am =================================================================== RCS file: /circus/cvsroot/edict-devel/lookup-1/lisp/Makefile.am,v retrieving revision 1.5 diff -u -r1.5 Makefile.am --- lisp/Makefile.am 28 Jan 2004 00:09:34 -0000 1.5 +++ lisp/Makefile.am 28 Oct 2010 09:21:26 -0000 @@ -5,17 +5,24 @@ ndspell.el ndcookie.el ndmisc.el ndsrd.el sdicf.el stem-english.el EXTRA_DIST = lookup-vars.el.in lookup-compile.el ndnmz.el \ lookup-logo.xbm lookup-logo.xpm $(SOURCES) +CLEANFILES = stamp-elc DISTCLEANFILES = lookup-vars.el MAINTAINERCLEANFILES = Makefile.in -lisp_LISP = $(SOURCES) lookup-vars.el -ELCFILES = $(lisp_LISP:.el=.elc) +ELCFILES = lookup-vars.elc $(SOURCES:.el=.elc) +lookuplisp_DATA = $(ELCFILES) $(SOURCES) +lookuplispdir = $(lispdir) -$(ELCFILES): lookup-vars.el $(srcdir)/lookup-compile.el $(lisp_LISP) - @$(EMACS) -batch -l $(srcdir)/lookup-compile.el $(lisp_LISP) +all: stamp-elc +stamp-elc: lookup-vars.el $(srcdir)/lookup-compile.el $(SOURCES) + @$(EMACS) -q -no-site-file -batch -l $(srcdir)/lookup-compile.el \ + $(SOURCES) lookup-vars.el + @touch stamp-elc lookup-vars.el: $(top_builddir)/config.status $(srcdir)/lookup-vars.el.in @rm -f lookup-vars.el @sed -e "s/\@VERSION\@/$(VERSION)/" \ -e "s!\@pkgemacsdir\@!$(emacsdir)/lookup!" \ $(srcdir)/lookup-vars.el.in > lookup-vars.el + +$(ELCFILES): stamp-elc