OSDN Git Service

update email (sf.jp ==> osdn.me)
[howm/howm.git] / Makefile.am
1 # shamelessly copied from navi2ch-cvs-0.0.20031209
2 # $Id: Makefile.am,v 1.23 2010-12-31 12:12:48 hira Exp $
3
4 howm_LISP = \
5         howm.el \
6         howm-menu.el \
7         howm-reminder.el \
8         howm-date.el \
9         howm-misc.el \
10         howm-mode.el \
11         howm-view.el \
12         howm-backend.el \
13         howm-common.el \
14         howm-vars.el \
15         howm-lang-en.el \
16         howm-lang-ja.el \
17         howm-menu-en.el \
18         howm-menu-ja.el \
19         honest-report.el \
20         action-lock.el \
21         riffle.el \
22         gfunc.el \
23         illusion.el \
24         cheat-font-lock.el
25
26 EXTRA_DIST = Makefile.old bcomp.el howm-mkmenu.el $(howm_LISP) \
27         bcomp.el.in howm.el.in test.bat
28 BUILT_SOURCES = $(srcdir)/howm.el $(srcdir)/bcomp.el
29 SUBDIRS = doc ext en ja sample
30
31 MENU_SRC = en/0000-00-00-000000.txt ja/0000-00-00-000000.txt
32 MENU_EL = $(srcdir)/howm-menu-en.el $(srcdir)/howm-menu-ja.el
33 TEST_INIT = sample/dot.emacs
34
35 AM_MAKEFLAGS = HOWM_MAKE=t
36
37 $(MENU_EL): $(srcdir)/howm-mkmenu.el $(MENU_SRC)
38         $(EMACS) -q -batch -l $(srcdir)/howm-mkmenu.el
39
40 # snap:
41 #       rm -f $(srcdir)/howm-version.el && \
42 #       $(MAKE) $(AM_MAKEFLAGS) VERSION=@VERSION@-`date +%y%m%d` dist elcdist && \
43 #       rm -f $(srcdir)/howm-version.el && \
44 #       $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/howm-version.el
45
46 # recompile: $(howm_LISP)
47 #       rm -f $(ELCFILES) && \
48 #       HOWM_MAKE=t EMACS="$(EMACS)" $(SHELL) $(srcdir)/elisp-comp $(howm_LISP)
49
50 # elcdist: $(ELCFILES)
51 #       rm -rf $(distdir) && \
52 #       mkdir $(distdir) && \
53 #       cp -p $(ELCFILES) $(distdir) && \
54 #       $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir)-elc.tar.gz && \
55 #       rm -rf $(distdir)
56
57 $(srcdir)/bcomp.el: $(srcdir)/bcomp.el.in $(srcdir)/Makefile.am
58         rm -f $@ && \
59         list=`for file in $(howm_LISP); do echo -n "\"$$file\" "; done` && \
60         sed -e "s/@\(howm_LISP\)@/$$list/" < $(srcdir)/bcomp.el.in > $@
61
62 # $(ELCFILES): $(howm_LISP)
63 #       $(MAKE) $(AM_MAKEFLAGS) recompile
64
65 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
66         cd $(top_builddir) && \
67         CONFIG_HEADERS= CONFIG_LINKS= \
68         CONFIG_FILES=$@ $(SHELL) ./config.status
69
70 Makefiles: $(top_builddir)/config.status
71         $(SHELL) $(top_builddir)/config.status
72
73 update:
74         ( cd $(srcdir); $(CVS) update -P -d ) && \
75         $(MAKE) $(AM_MAKEFLAGS) Makefiles
76
77 test:
78         HOWM_TEST=t $(EMACS) -q --no-site-file -l $(TEST_INIT)