File: Makefile.am

package info (click to toggle)
howm 1.4.4-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,708 kB
  • sloc: lisp: 7,770; sh: 3,408; ruby: 996; makefile: 96
file content (85 lines) | stat: -rw-r--r-- 2,408 bytes parent folder | download
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# shamelessly copied from navi2ch-cvs-0.0.20031209
# $Id: Makefile.am,v 1.23 2010-12-31 12:12:48 hira Exp $

howm_LISP = \
	howm.el \
	howm-menu.el \
	howm-reminder.el \
	howm-date.el \
	howm-misc.el \
	howm-mode.el \
	howm-view.el \
	howm-backend.el \
	howm-common.el \
	howm-vars.el \
	howm-version.el \
	howm-lang-en.el \
	howm-lang-ja.el \
	howm-menu-en.el \
	howm-menu-ja.el \
	honest-report.el \
	action-lock.el \
	riffle.el \
	gfunc.el \
	illusion.el \
	cheat-font-lock.el

EXTRA_DIST = Makefile.old bcomp.el howm-mkmenu.el $(howm_LISP) \
	bcomp.el.in howm-version.el.in test.bat
BUILT_SOURCES = $(srcdir)/howm-version.el $(srcdir)/bcomp.el
SUBDIRS = doc ext en ja sample

MENU_SRC = en/0000-00-00-000000.txt ja/0000-00-00-000000.txt
MENU_EL = $(srcdir)/howm-menu-en.el $(srcdir)/howm-menu-ja.el
TEST_INIT = sample/dot.emacs

AM_MAKEFLAGS = HOWM_MAKE=t

$(srcdir)/howm-version.el: $(srcdir)/howm-version.el.in $(srcdir)/configure.ac Makefile
	rm -f $@.tmp && \
	sed -e 's/~\(VERSION\)~/$(VERSION)/' \
		$(srcdir)/howm-version.el.in > $@.tmp && \
	mv $@.tmp $@

$(MENU_EL): $(srcdir)/howm-mkmenu.el $(MENU_SRC)
	$(EMACS) -q -batch -l $(srcdir)/howm-mkmenu.el

# snap:
# 	rm -f $(srcdir)/howm-version.el && \
# 	$(MAKE) $(AM_MAKEFLAGS) VERSION=@VERSION@-`date +%y%m%d` dist elcdist && \
# 	rm -f $(srcdir)/howm-version.el && \
# 	$(MAKE) $(AM_MAKEFLAGS) $(srcdir)/howm-version.el

# recompile: $(howm_LISP)
# 	rm -f $(ELCFILES) && \
# 	HOWM_MAKE=t EMACS="$(EMACS)" $(SHELL) $(srcdir)/elisp-comp $(howm_LISP)

# elcdist: $(ELCFILES)
# 	rm -rf $(distdir) && \
# 	mkdir $(distdir) && \
# 	cp -p $(ELCFILES) $(distdir) && \
# 	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir)-elc.tar.gz && \
# 	rm -rf $(distdir)

$(srcdir)/bcomp.el: $(srcdir)/bcomp.el.in $(srcdir)/Makefile.am
	rm -f $@ && \
	list=`for file in $(howm_LISP); do echo -n "\"$$file\" "; done` && \
	sed -e "s/@\(howm_LISP\)@/$$list/" < $(srcdir)/bcomp.el.in > $@

# $(ELCFILES): $(howm_LISP)
# 	$(MAKE) $(AM_MAKEFLAGS) recompile

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	cd $(top_builddir) && \
	CONFIG_HEADERS= CONFIG_LINKS= \
	CONFIG_FILES=$@ $(SHELL) ./config.status

Makefiles: $(top_builddir)/config.status
	$(SHELL) $(top_builddir)/config.status

update:
	( cd $(srcdir); $(CVS) update -P -d ) && \
	$(MAKE) $(AM_MAKEFLAGS) Makefiles

test:
	HOWM_TEST=t $(EMACS) -q --no-site-file -l $(TEST_INIT)