1 # Makefile for wcheck-mode
4 DESC
:= General interface for text checkers
5 VERSION
:= $(shell date
+%Y.
%-m.
%-d
)
8 FILES
:= $(MAIN
) $(PKG
) COPYING README
9 NAME
:= $(BASE
)-$(VERSION
)
17 tar --create
--file
$@
--transform
's,^,$(NAME)/,' $(FILES
)
19 $(NAME
).
tar.sig
: $(NAME
).
tar
20 gpg
--yes
--detach-sign
$<
23 @printf
"(define-package \"%s\" \"%s\"\n \"%s\")\n" \
24 "$(BASE)" "$(VERSION)" "$(DESC)" >$@
30 $(BASE
).elc
: %.elc
: %.el
31 emacs
-Q
--batch
-f batch-byte-compile
$<
34 git tag
-s
$(VERSION
) -m
'Version $(VERSION)' HEAD
37 rm -f
-- $(BASE
)*.
tar* README
$(BASE
).elc
39 .PHONY
: elpa
tar sign tag
clean elc
$(PKG
)