blob: b4351af4b68ca5ff20c70742fac27b6d19281ec4 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
SPECIAL = chess-auto.el
SOURCE = $(filter-out $(SPECIAL),$(wildcard *.el))
TARGET = $(patsubst %.el,%.elc,$(SPECIAL) $(SOURCE))
EMACS = emacs
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
ENVADD = TEXINPUTS="$(TEXINPUTS)" MAKEINFO="$(MAKEINFO) -I$(srcdir)"
all: $(TARGET) chess.info
chess-auto.el: chess-auto.in $(SOURCE)
cp chess-auto.in chess-auto.el
-rm chess-auto.elc
$(EMACS) --no-init-file --no-site-file -batch \
-l $(shell pwd)/chess-auto \
-f generate-autoloads \
$(shell pwd)/chess-auto.el .
%.elc: %.el
$(EMACS) --no-init-file --no-site-file -batch \
-l $(shell pwd)/chess-maint \
-f batch-byte-compile $<
chess-final.texi: chess.texi $(SOURCE)
$(EMACS) --no-init-file --no-site-file -batch \
-l $(shell pwd)/chess-maint \
-f chess-generate-texinfo-file
chess.info: chess-final.texi
$(MAKEINFO) chess-final.texi
info: chess.info
chess.dvi: chess-final.texi
$(ENVADD) $(TEXI2DVI) chess-final.texi
clean:
rm -f *~ chess.dvi chess-final.* game.* log.*
rm -f *.aux *.cp *.cps *.fn *.fns *.ky *.log *.pg *.toc *.tp *.vr
fullclean: clean
-rm $(TARGET) chess.info chess-auto.el
VERSION=$(shell perl -ne 'print $$1 if /chess-version.*"([^"]+)"/;' chess.el)
dist: fullclean all clean
cp -ar . /var/tmp/chess-$(VERSION)
tar cvjfXC /var/tmp/chess-$(VERSION).tar.bz2 \
.exclude /var/tmp chess-$(VERSION)
rm -fr /var/tmp/chess-$(VERSION)
mv /var/tmp/chess-$(VERSION).tar.bz2 \
$(HOME)/public_html/Emacs/packages
update:
make dist
sitecopy
make fullclean
|