Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 100 lines (79 sloc) 2.894 kb
e41d79b Claes Wikstrom ""
authored
1
be987fc Hans Ulrich Niedermann Rename shopingcart to shoppingcart
ndim authored
2 SUBDIRS = c_src src man www/shoppingcart www/code doc scripts
6377222 Claes Wikstrom ""
authored
3 include ./include.mk
2ae9701 Claes Wikstrom Added a 'make release' target in the top makefile. he release
authored
4 include ./vsn.mk
21abc5b Claes Wikstrom Initial revision
authored
5
47c0c70 Steve Vinoski add pkg-config support contributed by Olivier Girondel
vinoski authored
6 PKGCONFIG_FILES = yaws.pc
150d138 ""
Tobbe Tornquist authored
7
577b51f Claes Wikstrom safer make install
authored
8 all debug clean:
21abc5b Claes Wikstrom Initial revision
authored
9 @set -e ; \
10 for d in $(SUBDIRS) ; do \
78ee43d Claes Wikstrom ""
authored
11 if [ -f $$d/Makefile ]; then ( cd $$d && $(MAKE) $@ ) || exit 1 ; fi ; \
21abc5b Claes Wikstrom Initial revision
authored
12 done
2ae9701 Claes Wikstrom Added a 'make release' target in the top makefile. he release
authored
13 rm -rf yaws-${YAWS_VSN}.script yaws-${YAWS_VSN}.boot
14 rm -rf yaws-${YAWS_VSN}.rel yaws-${YAWS_VSN}.tar.gz
21abc5b Claes Wikstrom Initial revision
authored
15
e41d79b Claes Wikstrom ""
authored
16
27ce7bf Claes Wikstrom *** empty log message ***
authored
17 install: all
577b51f Claes Wikstrom safer make install
authored
18 set -e ; \
27ce7bf Claes Wikstrom *** empty log message ***
authored
19 for d in $(SUBDIRS) ; do \
577b51f Claes Wikstrom safer make install
authored
20 if [ -f $$d/Makefile ]; then ( cd $$d && $(MAKE) $@ ) || exit 1 ; fi ; \
47c0c70 Steve Vinoski add pkg-config support contributed by Olivier Girondel
vinoski authored
21 done
22 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/pkgconfig
23 $(INSTALL) -m 644 $(PKGCONFIG_FILES) $(DESTDIR)$(PREFIX)/lib/pkgconfig
27ce7bf Claes Wikstrom *** empty log message ***
authored
24 @echo "-------------------------------"
25 @echo
26 @echo "** etc files went into ${ETCDIR}"
27 @echo "** executables went into ${prefix}/bin"
28 @echo "** library files went into ${prefix}/lib/yaws"
29 @echo "** var files went into ${VARDIR}"
30 @echo "** default docroot went into ${VARDIR}/yaws/www"
31 @echo
32 @echo "--------------------------------"
577b51f Claes Wikstrom safer make install
authored
33
34
deddbfc Build chain modifications: Install target directories is now totally con...
Mikael Karlsson authored
35 docs:
36 ( cd doc && $(MAKE) docs )
5007942 Claes Wikstrom make local_install target
authored
37
a19bb41 Claes Wikstrom skip empty space after an </erl> and handle http_error which is generate...
authored
38 conf_clean:
39 -rm include.mk config.cache config.status config.log 2> /dev/null
40
5007942 Claes Wikstrom make local_install target
authored
41 local_install: all
42 (cd scripts && $(MAKE) local_install)
43
623f05e Claes Wikstrom ""
authored
44
2ae9701 Claes Wikstrom Added a 'make release' target in the top makefile. he release
authored
45 # Target for folks that want to build a proper OTP release
2b75594 Claes Wikstrom the make release patch was submitted by Vance Shipley
authored
46 # to be used with regular OTP release management.
2ae9701 Claes Wikstrom Added a 'make release' target in the top makefile. he release
authored
47 release: vsn.mk include.mk yaws.rel.src all
48 sed -e "s/%YAWS_VSN%/${YAWS_VSN}/g" \
49 -e "s/%ERTS_VSN%/${ERTS_VSN}/" \
50 -e "s/%KERNEL_VSN%/${KERNEL_VSN}/" \
51 -e "s/%STDLIB_VSN%/${STDLIB_VSN}/" \
52 -e "s/%SASL_VSN%/${SASL_VSN}/" \
53 -e "s/%MNESIA_VSN%/${MNESIA_VSN}/" \
54 < yaws.rel.src > yaws-${YAWS_VSN}.rel
55 erlc -pa ./ebin yaws-${YAWS_VSN}.rel
56 erl -pa ./ebin -noinput -run systools make_tar yaws-${YAWS_VSN} \
57 -s erlang halt
58 @echo "-------------------------------"
59 @echo
60 @echo "Best to rerun this in an Erlang shell to pick up include directory:"
61 @echo
62 @echo "$$ erl -pa ./ebin"
63 @echo "1> systools:make_tar(\"yaws-${YAWS_VSN}\", [{dirs,[include,examples,src]}])."
64 @echo
65 @echo "--------------------------------"
66
b215385 Claes Wikstrom ""
authored
67 touch:
68 find . -name '*' -print | xargs touch -m
69 find . -name '*.erl' -print | xargs touch -m
70
71
d69e4d8 Claes Wikstrom ""
authored
72
961926f Claes Wikstrom ""
authored
73
c88f457 Claes Wikstrom preparing for 1.62
authored
74 foo:
27ce7bf Claes Wikstrom *** empty log message ***
authored
75 @echo "-------------------------------"
76 @echo
77 @echo "** etc files will go into ${ETCDIR}"
78 @echo "** executables will go into ${prefix}/bin"
79 @echo "** library file will go into ${prefix}/lib/yaws"
80 @echo "** var files will go into ${VARDIR}"
81 @echo
82 @echo "--------------------------------"
83
ff2fc18 Claes Wikstrom dialyzer work
authored
84 yaws.plt:
85 dialyzer --build_plt -r . --output_plt yaws.plt \
db682d3 Steve Vinoski add test target to top-level Makefile
vinoski authored
86 -r $(ERLDIR)/lib/sasl-$(SASL_VSN) \
87 -r $(ERLDIR)/lib/kernel-$(KERNEL_VSN) \
88 -r $(ERLDIR)/lib/stdlib-$(STDLIB_VSN) \
89 -r $(ERLDIR)/lib/erts-$(ERTS_VSN)
b45c0a4 Claes Wikstrom dialyzer work
authored
90
ff2fc18 Claes Wikstrom dialyzer work
authored
91 # Not debug compiled, let's just ignore it
b45c0a4 Claes Wikstrom dialyzer work
authored
92 # -r $(ERLDIR)/lib/ssl-$(SSL_VSN)
93
94 dialyzer: yaws.plt
ff2fc18 Claes Wikstrom dialyzer work
authored
95 dialyzer --plt yaws.plt -r .
db682d3 Steve Vinoski add test target to top-level Makefile
vinoski authored
96
97 .PHONY: test
98 test:
99 cd test && $(MAKE) all setup test
Something went wrong with that request. Please try again.