Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 98 lines (80 sloc) 2.809 kB
e41d79b @klacke ""
authored
1
990bf47 @klacke moved the websockets example cb modules into the example dir
authored
2 SUBDIRS = c_src src man www/shoppingcart www/code doc scripts \
3 examples/src
6377222 @klacke ""
authored
4 include ./include.mk
2ae9701 @klacke Added a 'make release' target in the top makefile. he release
authored
5 include ./vsn.mk
21abc5b @klacke Initial revision
authored
6
47c0c70 @vinoski add pkg-config support contributed by Olivier Girondel
vinoski authored
7 PKGCONFIG_FILES = yaws.pc
150d138 ""
Tobbe Tornquist authored
8
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
9 all debug clean:
21abc5b @klacke Initial revision
authored
10 @set -e ; \
11 for d in $(SUBDIRS) ; do \
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
12 if [ -f $$d/Makefile ]; \
13 then ( cd $$d && $(MAKE) $@ ) || exit 1 ; \
14 fi ; \
21abc5b @klacke Initial revision
authored
15 done
2ae9701 @klacke Added a 'make release' target in the top makefile. he release
authored
16 rm -rf yaws-${YAWS_VSN}.script yaws-${YAWS_VSN}.boot
17 rm -rf yaws-${YAWS_VSN}.rel yaws-${YAWS_VSN}.tar.gz
21abc5b @klacke Initial revision
authored
18
28cb08d @vinoski make "make clean" also clean the test directory
vinoski authored
19 cleantests:
20 cd test && $(MAKE) clean
e41d79b @klacke ""
authored
21
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
22 clean: cleantests
23
24 install: all
577b51f @klacke safer make install
authored
25 set -e ; \
27ce7bf @klacke *** empty log message ***
authored
26 for d in $(SUBDIRS) ; do \
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
27 if [ -f $$d/Makefile ]; \
28 then ( cd $$d && $(MAKE) $@ ) || exit 1 ; \
29 fi ; \
47c0c70 @vinoski add pkg-config support contributed by Olivier Girondel
vinoski authored
30 done
c008278 @vinoski fix yaws issue #105: configure ignores --libdir
vinoski authored
31 $(INSTALL) -d $(DESTDIR)$(LIBDIR)/pkgconfig
32 $(INSTALL) -m 644 $(PKGCONFIG_FILES) $(DESTDIR)$(LIBDIR)/pkgconfig
27ce7bf @klacke *** empty log message ***
authored
33 @echo "-------------------------------"
34 @echo
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
35 @echo "** etc files went into ${ETCDIR}"
36 @echo "** executables went into ${prefix}/bin"
c008278 @vinoski fix yaws issue #105: configure ignores --libdir
vinoski authored
37 @echo "** library files went into ${LIBDIR}/yaws"
27ce7bf @klacke *** empty log message ***
authored
38 @echo "** var files went into ${VARDIR}"
39 @echo "** default docroot went into ${VARDIR}/yaws/www"
40 @echo
41 @echo "--------------------------------"
577b51f @klacke safer make install
authored
42
43
deddbfc Build chain modifications: Install target directories is now totally …
Mikael Karlsson authored
44 docs:
45 ( cd doc && $(MAKE) docs )
5007942 @klacke make local_install target
authored
46
a19bb41 @klacke skip empty space after an </erl> and handle http_error which is gener…
authored
47 conf_clean:
206b4d9 @vinoski delete chatty messages, make yaws_server upgrade-friendly (Klarna)
vinoski authored
48 -rm include.mk config.cache config.status config.log yaws.pc \
49 test/support/include.mk test/support/include.sh 2> /dev/null
a19bb41 @klacke skip empty space after an </erl> and handle http_error which is gener…
authored
50
5007942 @klacke make local_install target
authored
51 local_install: all
52 (cd scripts && $(MAKE) local_install)
53
623f05e @klacke ""
authored
54
2ae9701 @klacke Added a 'make release' target in the top makefile. he release
authored
55 # Target for folks that want to build a proper OTP release
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
56 # to be used with regular OTP release management.
2ae9701 @klacke Added a 'make release' target in the top makefile. he release
authored
57 release: vsn.mk include.mk yaws.rel.src all
58 sed -e "s/%YAWS_VSN%/${YAWS_VSN}/g" \
59 -e "s/%ERTS_VSN%/${ERTS_VSN}/" \
60 -e "s/%KERNEL_VSN%/${KERNEL_VSN}/" \
61 -e "s/%STDLIB_VSN%/${STDLIB_VSN}/" \
62 -e "s/%SASL_VSN%/${SASL_VSN}/" \
63 -e "s/%MNESIA_VSN%/${MNESIA_VSN}/" \
64 < yaws.rel.src > yaws-${YAWS_VSN}.rel
65 erlc -pa ./ebin yaws-${YAWS_VSN}.rel
66 erl -pa ./ebin -noinput -run systools make_tar yaws-${YAWS_VSN} \
67 -s erlang halt
68 @echo "-------------------------------"
69 @echo
70 @echo "Best to rerun this in an Erlang shell to pick up include directory:"
71 @echo
72 @echo "$$ erl -pa ./ebin"
73 @echo "1> systools:make_tar(\"yaws-${YAWS_VSN}\", [{dirs,[include,examples,src]}])."
74 @echo
75 @echo "--------------------------------"
76
b215385 @klacke ""
authored
77 touch:
78 find . -name '*' -print | xargs touch -m
79 find . -name '*.erl' -print | xargs touch -m
80
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
81 yaws.plt:
9b86f4a @jj1bdx Update Makefile and src/Makefile
jj1bdx authored
82 dialyzer --build_plt -r ebin --output_plt yaws.plt \
db682d3 @vinoski add test target to top-level Makefile
vinoski authored
83 -r $(ERLDIR)/lib/sasl-$(SASL_VSN) \
84 -r $(ERLDIR)/lib/kernel-$(KERNEL_VSN) \
85 -r $(ERLDIR)/lib/stdlib-$(STDLIB_VSN) \
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
86 -r $(ERLDIR)/lib/erts-$(ERTS_VSN)
b45c0a4 @klacke dialyzer work
authored
87
ff2fc18 @klacke dialyzer work
authored
88 # Not debug compiled, let's just ignore it
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
89 # -r $(ERLDIR)/lib/ssl-$(SSL_VSN)
b45c0a4 @klacke dialyzer work
authored
90
91 dialyzer: yaws.plt
9b86f4a @jj1bdx Update Makefile and src/Makefile
jj1bdx authored
92 -dialyzer -q --plt yaws.plt -r ebin > dialyzer_warnings
cbed101 @vinoski change dialyzer Makefile targets to handle known warnings
vinoski authored
93 diff -U0 known_dialyzer_warnings dialyzer_warnings
db682d3 @vinoski add test target to top-level Makefile
vinoski authored
94
95 .PHONY: test
2f9f664 Make the target test dependent on the target all
Christopher Faulet authored
96 test: all
db682d3 @vinoski add test target to top-level Makefile
vinoski authored
97 cd test && $(MAKE) all setup test
Something went wrong with that request. Please try again.