-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
72 lines (58 loc) · 1.45 KB
/
Makefile
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
############################################################
# Emacs-wget Makefile #
############################################################
## Copyright (C) 2002-2004, 2015 Masayuki Ataka <masayuki.ataka@gmail.com>
#
PACKAGE = emacs-wget
VERSION = 0.5.0
prefix = /usr/local
datadir = ${prefix}/share
lispdir = ${datadir}/emacs/site-lisp/emacs-wget
DOC = COPYING ChangeLog Makefile README.md README.ja.md USAGE.md USAGE.ja.md
EL = wget.el wget-sysdep.el w3-wget.el w3m-wget.el
ELC = wget.elc wget-sysdep.elc w3-wget.elc w3m-wget.elc
LPATH = lpath.el
MKDIR = mkdir
TAR = tar
CP = cp -p
RM = rm -f
EMACS = emacs
ELCC = $(EMACS) -batch -q -no-site-file -l $(LPATH)
.PHONY : all compile-elc
all: compile-elc
compile-elc: $(ELC)
%.elc: %.el
$(ELCC) -f batch-byte-compile $<
## Install emacs-wget
#
.PHONY : install
install:
if [ ! -d $(lispdir) ]; then \
$(MKDIR) -p $(lispdir); \
fi
$(CP) $(EL) $(ELC) $(lispdir)
## Release new version
#
# Set tag name, before make tar ball:
# $ cvs tag -c rel-X-X-X
#
# Checkout any release of emacs-wget:
# $ cvs checkout -r rel-X-X-X emacs-wget
#
# Remove tag name:
# $ cvs tag -d rel-X-X-X emacs-wget
#
DISTRIB = $(PACKAGE)-$(VERSION)
dist: distclean
$(MKDIR) $(DISTRIB)
$(CP) $(DOC) $(EL) $(LPATH) $(DISTRIB)
$(TAR) czvf $(DISTRIB).tar.gz $(DISTRIB)
## Clean
#
clean:
$(RM) *.elc *~
distclean: distclean
$(RM) -r $(DISTDIR)
$(RM) $(DISTDIR).tar.gz
#
## End of Makefile