Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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