Added `etest-load-path' functionality and tests.
[ETest.git] / Makefile
blob09c6c424094b331851629fa29a9cc09bc67001de
1 EMACS=emacs
2 GZIP=gzip
3 ALLSOURCE=$(wildcard *.el)
4 ALLCOMPILED=$(wildcard *.elc)
5 SPECIAL=
6 SOURCE=$(filter-out $(SPECIAL),$(ALLSOURCE))
7 TARGET=$(patsubst %.el,%.elc,$(SOURCE))
9 VERSION=0.1
11 DESTDIR=
12 PREFIX=$(DESTDIR)/usr/local
13 INFODIR=$(PREFIX)/info
14 MAN1DIR=$(PREFIX)/share/man/man1
15 SITELISP=$(PREFIX)/share/emacs/site-lisp/etest
17 INSTALLINFO = /usr/sbin/install-info --info-dir=$(INFODIR)
19 .PHONY: all install deb-install clean
20 .PRECIOUS: %.elc %.info %.html
21 all: $(TARGET) etest.info
23 %.elc: %.el
24 @$(EMACS) --eval "(add-to-list 'load-path \".\")" \
25 -q --no-site-file \
26 -batch \
27 -f batch-byte-compile $<
29 %.info: %.texinfo
30 makeinfo --no-split $<
32 %.html: %.texinfo etest-style.css
33 makeinfo --css-include etest-style.css --html --no-split $<
35 install:
36 test -d $(SITELISP) || mkdir -p $(SITELISP)
37 [ -d $(INFODIR) ] || install -d $(INFODIR)
38 install -m 644 $(ALLSOURCE) $(SITELISP)
39 install -m 644 $(ALLCOMPILED) $(SITELISP)
40 install -m 0644 etest.info $(INFODIR)/etest
41 for p in $(MAN1PAGES) ; do $(GZIP) -9c $$p > $(MAN1DIR)/$$p.gz ; done
42 $(INSTALLINFO) etest.info
44 dist:
45 tar -C .. -cvzf etest-$(VERSION).tar.gz etest # fix "etest" assumption
47 html: etest.html
49 remove-info:
50 $(INSTALLINFO) --remove etest.info
52 deb-install:
53 install -m 644 $(ALLSOURCE) $(SITELISP)
55 ChangeLog:
56 git log > $@
58 clean:
59 -rm -f *~ *.elc etest.info etest.html