Skip to content

HTTPS clone URL

Subversion checkout URL

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