File: Makefile

package info (click to toggle)
nxml-mode 20041004-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,448 kB
  • ctags: 1,105
  • sloc: lisp: 27,512; xml: 686; makefile: 116; sh: 37
file content (80 lines) | stat: -rw-r--r-- 2,204 bytes parent folder | download | duplicates (3)
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
73
74
75
76
77
78
79
80
EXTRA=README NEWS VERSION TODO COPYING Makefile rng-auto.el \
  nxml-mode.xml nxml-mode.rnc nxml-mode.texi nxml-mode.info dir \
  test.valid.xml test.invalid.xml 

SRC=nxml-rap.el nxml-outln.el nxml-mode.el nxml-parse.el nxml-enc.el \
  nxml-uchnm.el nxml-glyph.el nxml-maint.el nxml-util.el nxml-ns.el \
  rng-dt.el rng-valid.el rng-pttrn.el rng-xsd.el rng-cmpct.el \
  rng-match.el rng-nxml.el rng-util.el rng-loc.el rng-uri.el \
  rng-parse.el rng-maint.el xsd-regexp.el xmltok.el

ELC=nxml-rap.elc nxml-outln.elc nxml-mode.elc nxml-parse.elc nxml-enc.elc \
  nxml-uchnm.elc nxml-glyph.elc nxml-maint.elc nxml-util.elc nxml-ns.elc \
  rng-dt.elc rng-valid.elc rng-pttrn.elc rng-xsd.elc rng-cmpct.elc \
  rng-match.elc rng-nxml.elc rng-util.elc rng-loc.elc rng-uri.elc \
  rng-parse.elc rng-maint.elc xsd-regexp.elc xmltok.elc

FILESTOCLEAN=stamp-byte-compile $(ELC) VERSION TAGS \
  nxml-mode.texi nxml-mode.info dir

EMACS=emacs
ETAGS=etags
MAKEINFO=makeinfo
INSTALL-INFO=install-info
PACKAGE=nxml-mode

stamp-byte-compile: $(SRC)
	-rm -f $(ELC)
	$(EMACS) -batch -l rng-auto.el -f rng-byte-compile-load
	touch $(@)

all: stamp-byte-compile nxml-mode.info

dir: nxml-mode.info
	rm -f $@
	$(INSTALL-INFO) $< $@

info: nxml-mode.info

nxml-mode.info: nxml-mode.texi
	$(MAKEINFO) $<

nxml-mode.texi: nxml-mode.xml
	$(EMACS) -batch -l rng-auto.el -f rng-format-manual

VERSION: stamp-byte-compile rng-auto.el
	$(EMACS) -batch -l rng-auto.el -f rng-write-version

TAGS: $(SRC)
	$(ETAGS) $(SRC)

dist: stamp-byte-compile $(EXTRA)
	@version=`cat VERSION`; \
	set -e; \
	echo Making $(PACKAGE)-$$version.tar.gz; \
	rm -fr $(PACKAGE)-$$version; \
	mkdir $(PACKAGE)-$$version; \
	cd $(PACKAGE)-$$version; \
	for f in $(EXTRA) $(SRC) $(ELC); do \
	  ln -s ../$$f .; \
	done; \
	mkdir schema; \
	cd schema; \
	for f in ../../schema/*.rnc ../../schema/*.xml; do \
	  ln -s $$f .; \
	done; \
	cd ..; \
	mkdir char-name; \
	mkdir char-name/unicode; \
	cd char-name/unicode; \
	for f in ../../../char-name/unicode/*-*.el; do \
	  ln -s $$f .; \
	done; \
	cd ../../..; \
	tar cfhz $(PACKAGE)-$$version.tar.gz $(PACKAGE)-$$version; \
	rm -fr $(PACKAGE)-$$version

clean:
	-rm -f $(FILESTOCLEAN)

.PHONY: all clean info