Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 120 lines (95 sloc) 2.889 kb
53c6a29 @klacke svn migr
authored
1 include ../include.mk
2
3 ifeq ($(TYPE),debug)
4 DEBUG_FLAGS = -Ddebug +debug_info
5 else
6 DEBUG_FLAGS =
7 endif
8
9 include ../vsn.mk
10 VSN=$(YAWS_VSN)
11 MODULES=yaws \
12 yaws_app \
13 yaws_ticker \
14 yaws_config \
15 yaws_server \
16 yaws_sup \
17 yaws_api \
18 yaws_log \
19 yaws_ls \
20 yaws_debug \
21 yaws_compile \
22 yaws_ctl \
23 yaws_cgi \
24 yaws_zlib \
25 yaws_generated \
26 mime_type_c \
27 mime_types \
28 yaws_session_server \
29 yaws_404 \
30 yaws_revproxy \
31 yaws_html \
32 yaws_log_file_h \
33 yaws_rss \
34 yaws_dav \
35 yaws_pam \
36 json jsonrpc yaws_jsonrpc yaws_xmlrpc\
37 haxe yaws_rpc \
a3f4fde @klacke Reintroduced the SPNEGO/GSSAPI auth support by Mikael Magnusson
authored
38 yaws_soap_srv yaws_soap_lib \
7cd4080 @klacke Added CGI documentation including a new page http://yaws.hyber.org/cgi.y...
authored
39 authmod_gssapi \
40 yaws_appmod_cgi
53c6a29 @klacke svn migr
authored
41
42
43 EBIN_FILES=$(MODULES:%=../ebin/%.$(EMULATOR)) ../ebin/yaws.app
5b596d7 @klacke added support for GSSAPI through a patch by Mikale Magnusson
authored
44 ERLC_FLAGS+=-W $(DEBUG_FLAGS) -pa ../../yaws -I ../include
53c6a29 @klacke svn migr
authored
45
46 #
47 # Targets
48 #
49
50 all: yaws_generated.erl $(EBIN_FILES)
51
52 dav:
53 $(MAKE) MODULES="$(MODULES) yaws_dav"
54
55 $(EBIN_FILES) : ../include/yaws.hrl ../include/yaws_api.hrl
56
57
58 yaws_generated.erl: yaws_generated.template ../vsn.mk
59 . ../vsn.mk; \
60 sed -e "s/%VSN%/${YAWS_VSN}/" -e \
61 "s;%VARDIR%;${VARDIR};g" -e \
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into users...
authored
62 "s;%localinstall%;true;g" -e \
53c6a29 @klacke svn migr
authored
63 "s;%ETCDIR%;${ETCDIR};g" \
64 < yaws_generated.template > yaws_generated.erl
65
66
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into users...
authored
67 ## need to differentiate between local install and not
68 regen:
69 . ../vsn.mk; \
70 sed -e "s/%VSN%/${YAWS_VSN}/" -e \
71 "s;%VARDIR%;${VARDIR};g" -e \
72 "s;%localinstall%;false;g" -e \
73 "s;%ETCDIR%;${ETCDIR};g" \
74 < yaws_generated.template > yaws_generated.erl
75
53c6a29 @klacke svn migr
authored
76
77 charset.def:
78 if [ ! -z "$(DEFAULT_CHARSET)" ]; then \
79 echo $(DEFAULT_CHARSET) > charset.def; \
80 else rm charset.def 2> /dev/null; touch charset.def; fi
81
82 mime_types.erl: mime.types mime_type_c.erl charset.def
83 $(ERL) -noshell -pa ../ebin -s mime_type_c compile
84
85 debug:
86 $(MAKE) TYPE=debug
87
88 clean:
89 rm -f $(EBIN_FILES) yaws_generated.erl charset.def mime_types.erl
90
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into users...
authored
91 install: regen all docsinstall
53c6a29 @klacke svn migr
authored
92 $(INSTALL) -d $(DESTDIR)/$(PREFIX)/lib/yaws/examples/ebin
93 $(INSTALL) -d $(DESTDIR)/$(PREFIX)/lib/yaws/examples/include
94 $(INSTALL) -d $(DESTDIR)/$(PREFIX)/lib/yaws/ebin
95 $(INSTALL) -d $(DESTDIR)/$(PREFIX)/lib/yaws/priv
96 $(INSTALL) -d $(DESTDIR)/$(VARDIR)/log/yaws
97 $(INSTALL) -d $(DESTDIR)/$(VARDIR)/yaws/ebin
98 (cd ..; tar cf - ebin ) | (cd $(DESTDIR)/$(PREFIX)/lib/yaws; tar xf - )
99 (cd ..; tar cf - include ) | (cd $(DESTDIR)/$(PREFIX)/lib/yaws; tar xf - )
100 (cd ..; tar cf - priv/*.xsd ) | (cd $(DESTDIR)/$(PREFIX)/lib/yaws; tar xf - )
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into users...
authored
101 $(RM) yaws_generated.erl ../ebin/yaws_generated.beam 2>/dev/null || true
53c6a29 @klacke svn migr
authored
102
103 docsinstall:
104 $(INSTALL) -d $(DESTDIR)/$(VARDIR)/yaws/www
105 (cd ..; tar cf - www ) | (cd $(DESTDIR)/$(VARDIR)/yaws; tar xf - )
106
107 tags:
108 erl -noshell -pa ../ebin -s yaws_debug mktags
109
110 xref:
111 erl -noshell -pa ../ebin -s yaws_debug xref ../ebin
112
113 DIALYZER_FLAGS+=-Wno_return
114
115 dialyzer: .dialyzer.ok
116
117 .dialyzer.ok: $(MODULES:%=../ebin/%.$(EMULATOR))
118 dialyzer $(DIALYZER_FLAGS) -c ../ebin
119 touch .dialyzer.ok
Something went wrong with that request. Please try again.