File: Makefile

package info (click to toggle)
rail 1.2.12-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 328 kB
  • sloc: lisp: 854; perl: 116; makefile: 60; sh: 23
file content (70 lines) | stat: -rw-r--r-- 1,647 bytes parent folder | download
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
#
# Makefile for rail
#
# $Lastupdate: 2018-08-19 19:39:50$
#

ifeq (, $(shell which cask))
  EMACS = emacs
else
  EMACS = cask exec emacs
endif
MANIFEST= contrib/MANIFEST.rail
MULEVER	= contrib/MULE_VERSION
FLIMVER	= contrib/FLIM_VERSION contrib/ADD_FLIM_VERSION
SEMIVER	= contrib/SEMI_VERSION contrib/ADD_SEMI_VERSION
RAILVER = $(shell grep rail-version rail-vars.el | awk '{print $$3}')

TABLES	?= rail-table-flim.el
TABLES	+= rail-table-semi.el
TABLES	+= rail-table-mule.el
EL		?= $(TABLES)
EL		+= rail.el
EL		+= rail-common.el
EL		+= rail-vars.el
EL		+= rail-user-agent.el
ELC		= $(EL:%.el=%.elc)
ELFLAGS = -q -no-site-file -batch

%.elc: %.el
	$(EMACS) $(ELFLAGS) -L . -f batch-byte-compile $<

all: $(ELC)

# rail
rail.el: $(TABLES)

rail-table-mule.el: $(MULEVER)
	$(EMACS) $(ELFLAGS) -l ./contrib/rail-make-table.el -f rail-make-table-mule

rail-table-flim.el: $(FLIMVER)
	$(EMACS) $(ELFLAGS) -l ./contrib/rail-make-table.el -f rail-make-table-flim

rail-table-semi.el: $(SEMIVER)
	$(EMACS) $(ELFLAGS) -l ./contrib/rail-make-table.el -f rail-make-table-semi

# clean up
clean:
	-rm -f $(ELC)

distclean: maintainer-clean

maintainer-clean:
	-rm -f *~ $(ELC) $(TABLES)

test: run-test
run-test: $(ELC)
	$(EMACS) $(ELFLAGS) -L . -l test/run-test.el

cl: git2cl
git2cl:
	@git log --date=short --pretty=format:"%ad  %an  <%ae>%n%n* %s%n%b%n" | \
	sed -e 's/^\(.*\)$$/\t\1/g' | \
	sed -e 's/^\t\([0-9]*-[0-9]*-[0-9]*.*\)$$/\1/g' | \
	sed -e 's/^\t$$//g' | \
	sed ':loop; N; $$!b loop; s/\n\n\n/\n\n/g' \
	> ChangeLog
# create tar.gz
release:
	@git archive --format=tar --prefix=rail-$(RAILVER)/ HEAD \
	  | gzip -9 > ../rail-$(RAILVER).tar.gz