1 DIRS
= $(shell find .
! -name CVS
-type d
)
2 SPECIAL
= chess-auto.el
3 SOURCE
= $(filter-out $(SPECIAL
),$(shell find
-name
'*.el'))
4 TARGET
= $(patsubst %.el
,%.elc
,$(SPECIAL
) $(SOURCE
))
10 chess-auto.el
: chess-auto.in
$(SOURCE
)
11 cp chess-auto.in chess-auto.el
13 $(EMACS
) --no-init-file
--no-site-file
-batch \
14 -l
$(shell pwd
)/chess-auto \
15 -f generate-autoloads \
16 $(shell pwd
)/chess-auto.el
$(DIRS
)
19 $(EMACS
) --no-init-file
--no-site-file
-batch \
20 -f batch-byte-compile
$<
26 -rm *.elc chess-auto.el