aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmerl/doc/examples/Makefile
blob: 2768ee198550c9e4605d5c710dd584d008ec5f06 (plain) (blame)
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
ERLC = erlc
EMULATOR = beam
EBIN = .
HTML = .
XML = ./xml
RM = rm -f

# ----------------------------------------------------
# Common Macros
# ----------------------------------------------------
include ../../vsn.mk
VSN = $(XMERL_VSN)


MODULES = \
	xmerl_test \
	test_html \
	xserl_test \
        mkdocs \
        sdocbook2xhtml



DOC_FILES = $(DOCS:%=$(HTML)/%.html) 

ERL_COMPILE_FLAGS += $(DEBUG) -I ../../include +warn_unused_wars +debug_info

SUB_DIRECTORIES =

#all:   $(MODULES:%=$(EBIN)/%.$(EMULATOR)) xsm $(DOC_FILES)
all opt:   $(MODULES:%=$(EBIN)/%.$(EMULATOR)) $(DOC_FILES)

info:
	@echo "DOC_FILES: $(DOC_FILES)"

clean:
#	@for d in $(SUB_DIRECTORIES); do \
#	  	cd $$d; $(MAKE) clean; \
#	done
	$(RM) $(HTML)/*.html
	$(RM) $(EBIN)/*.beam
	$(RM) core *~

debug:  xsmdebug $(DOC_FILES)

xsm:
	@for d in $(SUB_DIRECTORIES); do \
	  	cd $$d; $(MAKE); \
	done

xsmdebug:
	@for d in $(SUB_DIRECTORIES); do \
	  	cd $$d; $(MAKE) DEBUG=-Ddebug=1; \
	done

$(HTML)/%.html:	$(XML)/%.xml
	erl -noshell -pa ../../ebin -run mkdocs run $< $@ -s erlang halt

$(EBIN)/%.beam:	%.erl
	$(ERLC)  $(ERL_COMPILE_FLAGS) -o $(EBIN) $<