Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 106 lines (82 sloc) 2.463 kb
2cbc772 Stepped version number to "4.0pre" so that 'net-searchers will see
Luke Gorrie authored
1 PACKAGE := distel
7e51158 mats cronqvist ${erlc} was defined but not used
authored
2 VERSION := 4.02
2cbc772 Stepped version number to "4.0pre" so that 'net-searchers will see
Luke Gorrie authored
3
4 prefix = /usr/local
5 exec_prefix = ${prefix}
6 bindir = ${exec_prefix}/bin
7 datadir = ${prefix}/share
8 infodir = ${prefix}/info
9 erlc = erlc
10 emacs = emacs
11
488b16d mats cronqvist the "make install" target and "erl-load-backend" disagreed on where th...
authored
12 ELISP_DIR = ${datadir}/distel/elisp
2cbc772 Stepped version number to "4.0pre" so that 'net-searchers will see
Luke Gorrie authored
13 EBIN_DIR = ${datadir}/distel/ebin
14 ERL_SRC_DIR = ${datadir}/distel/src
15
16 ########################################
17 ## Main part
18
19 ERL_SRC := $(wildcard src/*.erl)
20 ERL_OBJ := $(patsubst src/%.erl,ebin/%.beam,${ERL_SRC})
21
22 ELISP_SRC := elisp/erlext.el
23 ELISP_OBJ := $(patsubst %.el,%.elc,${ELISP_SRC})
24
25 DOC_SRC := doc/distel.texi
26 INFO_OBJ := doc/distel.info
27 PS_OBJ := doc/distel.ps
28
29 OBJECTS := ${ERL_OBJ} ${ELISP_OBJ} ${C_OBJ} ${INFO_OBJ} ${PS_OBJ}
30
c6ed391 mats cronqvist ignores
authored
31 base: ebin ${ERL_OBJ} ${ELISP_OBJ} ${C_OBJ}
2cbc772 Stepped version number to "4.0pre" so that 'net-searchers will see
Luke Gorrie authored
32 info: ${INFO_OBJ}
33 postscript: ${PS_OBJ}
34 all: base info postscript
c6ed391 mats cronqvist ignores
authored
35 ebin:
36 mkdir ebin
2cbc772 Stepped version number to "4.0pre" so that 'net-searchers will see
Luke Gorrie authored
37
38 erl: ${ERL_OBJ}
39
40 ########################################
41 ## Rules
42
43 ## Erlang
44 ebin/%.beam: src/%.erl
7e51158 mats cronqvist ${erlc} was defined but not used
authored
45 ${erlc} -W -o ebin +debug_info $<
2cbc772 Stepped version number to "4.0pre" so that 'net-searchers will see
Luke Gorrie authored
46
47 ## Elisp
48 elisp/%.elc: elisp/%.el
49 ${emacs} -batch -f batch-byte-compile $<
50
51 ## Info documentation
52 doc/distel.info: ${DOC_SRC}
53 makeinfo -o $@ $<
54
55 ## Postscript documentation
56 doc/distel.ps: doc/distel.dvi
57 dvips -o $@ $<
58
59 doc/distel.dvi: ${DOC_SRC}
60 (cd doc; texi2dvi distel.texi)
61
62 ########################################
63
64 clean:
65 -rm -f ${OBJECTS} 2>/dev/null
66
67 distclean: clean
fbf5796 Removed configure
Luke Gorrie authored
68 -rm -f *~ */*~ 2>/dev/null
2cbc772 Stepped version number to "4.0pre" so that 'net-searchers will see
Luke Gorrie authored
69
70 install: base
71 @echo "* Installing Emacs Lisp Library"
72 install -m 775 -d ${ELISP_DIR} ${EBIN_DIR} ${ERL_SRC_DIR}
73 install -m 775 elisp/*.el elisp/*.elc ${ELISP_DIR}
74 @echo
75 @echo "* Installing Erlang Library"
76 install -m 775 ebin/*.beam ${EBIN_DIR}
77 install -m 775 src/*.erl ${ERL_SRC_DIR}
78 @echo
79 @echo "*** Successfully installed. See README for usage instructions."
80 @echo
81
82 info_install: info
83 @echo "* Installing Info documentation"
84 cp doc/distel.info ${infodir}
85 # NB: Debian's not-GNU-compatible install-info needs "--section Emacs Emacs"
86 install-info --info-dir=${infodir} --section Emacs \
87 ${infodir}/distel.info
88
fbf5796 Removed configure
Luke Gorrie authored
89 dist: always distclean
2cbc772 Stepped version number to "4.0pre" so that 'net-searchers will see
Luke Gorrie authored
90 cd .. && ln -sf ${PACKAGE} ${PACKAGE}-${VERSION}
91 cd .. && (find ${PACKAGE}-${VERSION} -follow -type f | \
92 egrep -v '(^attic/)|/CVS/|\.cvsignore|\.rej|\.orig|\#' | \
93 xargs tar czf ${PACKAGE}-${VERSION}.tar.gz)
94 rm ../${PACKAGE}-${VERSION}
95
96 wc:
97 @echo "* Emacs Lisp"
98 @wc -l */*.el | sort -nr
99 @echo "* Erlang"
100 @wc -l */*.erl | sort -nr
101 @echo "* C"
102 @wc -l */*.c | sort -nr
103
104 .INTERMEDIATE: doc/distel.dvi
105 .PHONY: always
Something went wrong with that request. Please try again.