summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a1eaa78..41813b0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,9 @@
-DIRS = $(shell find . ! -name CVS -type d)
SPECIAL = chess-auto.el
-SOURCE = $(filter-out $(SPECIAL),$(shell find -name '*.el'))
+SOURCE = $(filter-out $(SPECIAL),$(wildcard *.el))
TARGET = $(patsubst %.el,%.elc,$(SPECIAL) $(SOURCE))
EMACS = emacs
all: $(TARGET)
- -rm subdirs.elc
chess-auto.el: chess-auto.in $(SOURCE)
cp chess-auto.in chess-auto.el
@@ -13,10 +11,11 @@ chess-auto.el: chess-auto.in $(SOURCE)
$(EMACS) --no-init-file --no-site-file -batch \
-l $(shell pwd)/chess-auto \
-f generate-autoloads \
- $(shell pwd)/chess-auto.el $(DIRS)
+ $(shell pwd)/chess-auto.el .
%.elc: %.el
$(EMACS) --no-init-file --no-site-file -batch \
+ -l $(shell pwd)/chess-maint \
-f batch-byte-compile $<
clean: