Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 127 lines (101 sloc) 3.124 kb
53c6a29 Claes Wikstrom 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 Claes Wikstrom Reintroduced the SPNEGO/GSSAPI auth support by Mikael Magnusson
authored
38 yaws_soap_srv yaws_soap_lib \
7cd4080 Claes Wikstrom Added CGI documentation including a new page http://yaws.hyber.org/cgi.y...
authored
39 authmod_gssapi \
12471ad Claes Wikstrom added configure support for sendfile
authored
40 yaws_appmod_cgi \
41 yaws_sendfile yaws_sendfile_compat
42
53c6a29 Claes Wikstrom svn migr
authored
43
44
45 EBIN_FILES=$(MODULES:%=../ebin/%.$(EMULATOR)) ../ebin/yaws.app
5b596d7 Claes Wikstrom added support for GSSAPI through a patch by Mikale Magnusson
authored
46 ERLC_FLAGS+=-W $(DEBUG_FLAGS) -pa ../../yaws -I ../include
53c6a29 Claes Wikstrom svn migr
authored
47
48 #
49 # Targets
50 #
51
52 all: yaws_generated.erl $(EBIN_FILES)
53
54 dav:
55 $(MAKE) MODULES="$(MODULES) yaws_dav"
56
57 $(EBIN_FILES) : ../include/yaws.hrl ../include/yaws_api.hrl
58
59
60 yaws_generated.erl: yaws_generated.template ../vsn.mk
61 . ../vsn.mk; \
4607990 Claes Wikstrom cygwin support
authored
62 cat yaws_generated.template | \
63 ../scripts/Subst %VSN% ${YAWS_VSN} | \
64 ../scripts/Subst %VARDIR% ${VARDIR} | \
65 ../scripts/Subst %localinstall% true | \
66 ../scripts/Subst %ETCDIR% ${ETCDIR} > yaws_generated.erl
53c6a29 Claes Wikstrom svn migr
authored
67
12471ad Claes Wikstrom added configure support for sendfile
authored
68 yaws_configure.hrl: ../vsn.mk
69 set -x; \
70 if [ $(HAVE_SENDFILE) = "true" ]; then \
71 echo "-define(HAVE_SENDFILE, true)." > yaws_configure.hrl; \
72 else touch yaws_configure.hrl; fi
73
74
d07115c Claes Wikstrom Several cleanups due to dialyzer, also moved the control file into users...
authored
75 ## need to differentiate between local install and not
76 regen:
77 . ../vsn.mk; \
4607990 Claes Wikstrom cygwin support
authored
78 cat yaws_generated.template | \
79 ../scripts/Subst %VSN% ${YAWS_VSN} | \
80 ../scripts/Subst %VARDIR% ${VARDIR} | \
81 ../scripts/Subst %localinstall% false | \
82 ../scripts/Subst %ETCDIR% ${ETCDIR} > yaws_generated.erl
53c6a29 Claes Wikstrom svn migr
authored
83
84 charset.def:
85 if [ ! -z "$(DEFAULT_CHARSET)" ]; then \
86 echo $(DEFAULT_CHARSET) > charset.def; \
87 else rm charset.def 2> /dev/null; touch charset.def; fi
88
89 mime_types.erl: mime.types mime_type_c.erl charset.def
90 $(ERL) -noshell -pa ../ebin -s mime_type_c compile
91
92 debug:
93 $(MAKE) TYPE=debug
94
95 clean:
96 rm -f $(EBIN_FILES) yaws_generated.erl charset.def mime_types.erl
97
d07115c Claes Wikstrom Several cleanups due to dialyzer, also moved the control file into users...
authored
98 install: regen all docsinstall
da61d09 Claes Wikstrom cygwin install patch by Bill Robertsson
authored
99 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/examples/ebin
100 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/examples/include
101 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/ebin
102 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/priv
103 $(INSTALL) -d $(DESTDIR)$(VARDIR)/log/yaws
104 $(INSTALL) -d $(DESTDIR)$(VARDIR)/yaws/ebin
105 (cd ..; tar cf - ebin ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
106 (cd ..; tar cf - include ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
107 (cd ..; tar cf - priv/*.xsd ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
d07115c Claes Wikstrom Several cleanups due to dialyzer, also moved the control file into users...
authored
108 $(RM) yaws_generated.erl ../ebin/yaws_generated.beam 2>/dev/null || true
53c6a29 Claes Wikstrom svn migr
authored
109
110 docsinstall:
da61d09 Claes Wikstrom cygwin install patch by Bill Robertsson
authored
111 $(INSTALL) -d $(DESTDIR)$(VARDIR)/yaws/www
112 (cd ..; tar cf - www ) | (cd $(DESTDIR)$(VARDIR)/yaws; tar xf - )
53c6a29 Claes Wikstrom svn migr
authored
113
114 tags:
115 erl -noshell -pa ../ebin -s yaws_debug mktags
116
117 xref:
118 erl -noshell -pa ../ebin -s yaws_debug xref ../ebin
119
120 DIALYZER_FLAGS+=-Wno_return
121
122 dialyzer: .dialyzer.ok
123
124 .dialyzer.ok: $(MODULES:%=../ebin/%.$(EMULATOR))
125 dialyzer $(DIALYZER_FLAGS) -c ../ebin
126 touch .dialyzer.ok
Something went wrong with that request. Please try again.