Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 71 lines (60 sloc) 1.995 kB
21abc5b @klacke Initial revision
authored
1 include ../include.mk
2
3
5d32ac8 @klacke debian patch from David Welton applied
authored
4 all debug: ../bin/yaws yaws.conf
ea1789e @klacke ""
authored
5
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
6 ../bin/yaws: yaws.template
7 cat yaws.template | \
8 ./Subst %yawsdir% `pwd`/.. | \
87a5ac5 @klacke *** empty log message ***
authored
9 ./Subst %vardir% $(VARDIR) | \
10 ./Subst %run_erl% "$(ERLBINDIR)/run_erl" | \
11 ./Subst %to_erl% "$(ERLBINDIR)/to_erl" | \
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
12 ./Subst %erl% "$(ERL)" | \
13 ./Subst %werl% "$(WERL)" > ../bin/yaws
14 chmod +x ../bin/yaws
15
5007942 @klacke make local_install target
authored
16
17 local_install: ../bin/yaws
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
18 @install -d $$HOME/yaws_logs
961926f @klacke ""
authored
19 @if [ -f $$HOME/yaws.conf ]; \
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
20 then target=$$HOME/yaws.conf.template; \
961926f @klacke ""
authored
21 else \
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
22 target=$$HOME/yaws.conf; \
23 fi; \
24 echo "--- Installing local config file at $${target} "; \
25 cat yaws.conf.template | \
26 ./Subst %yawsdir% `pwd`/.. | \
27 ./Subst %logdir% $$HOME/yaws_logs | \
28 ./Subst %host% `hostname` | \
29 ./Subst %port% 8000 | \
c92ac9d @klacke cleanup
authored
30 ./Subst %vardir% $(VARDIR) | \
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
31 ./Subst %docroot% `pwd`/../www | \
32 ./Subst %certdir% `pwd`/../ssl | \
33 ./Subst %sslport% 4443 > $${target}; \
e441faa @klacke Use
authored
34 $(INSTALL) -d $$HOME/bin; \
35 rm $$HOME/bin/yaws 2> /dev/null; \
36 cp -f ../bin/yaws $$HOME/bin/yaws; \
1dcb026 @klacke New better install procedure, better (more interesting) yaws.conf tem…
authored
37 echo "--- Installed $$HOME/bin/yaws"
57d2cc4 @klacke ""
authored
38
443b55e @klacke Build and make fixes
authored
39
5d32ac8 @klacke debian patch from David Welton applied
authored
40 yaws.conf:
e63e8b9 @klacke ""
authored
41 @echo PREFIX is $(PREFIX)
42 cat yaws.conf.template | \
43 ./Subst %yawsdir% $(PREFIX)/lib/yaws | \
9624397 @klacke patch from Fredrik Linder to make it easier to integrate yaws into a…
authored
44 ./Subst %logdir% $(VARDIR)/log/yaws | \
443b55e @klacke Build and make fixes
authored
45 ./Subst %vardir% $(VARDIR) | \
e63e8b9 @klacke ""
authored
46 ./Subst %host% `hostname` | \
47 ./Subst %port% 80 | \
48 ./Subst %docroot% $(VARDIR)/yaws/www | \
49 ./Subst %certdir% $(ETCDIR) | \
50 ./Subst %sslport% 443 > yaws.conf
5d32ac8 @klacke debian patch from David Welton applied
authored
51
21abc5b @klacke Initial revision
authored
52 clean:
c431b06 @klacke git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk…
authored
53 rm -f ../bin/yaws yaws.conf
21abc5b @klacke Initial revision
authored
54
0e4eef7 @klacke weird make behaviour from macos make
authored
55 install: .install
56
57 .install:
dc00e52 @klacke postvar bug by hal snyder, added yaws_api:query_url/1 added the id su…
authored
58 -rm -rf /tmp/yaws 2> /dev/null
c9778e0 @klacke added support for 2 additional configure
authored
59 sh ./Install $(PREFIX) $(DESTDIR) "$(ERL)" \
87a5ac5 @klacke *** empty log message ***
authored
60 "$(WERL)" $(ETCDIR)/ $(VARDIR)/ $(ERLBINDIR)/
c9778e0 @klacke added support for 2 additional configure
authored
61 @cp ../ssl/yaws-cert.pem $(DESTDIR)/$(ETCDIR)
62 @cp ../ssl/yaws-key.pem $(DESTDIR)/$(ETCDIR)
63 @if [ -f $(DESTDIR)/$(ETCDIR)/yaws.conf ]; \
9d7138b @klacke ""
authored
64 then echo "Keeping old config file "; \
c9778e0 @klacke added support for 2 additional configure
authored
65 cp yaws.conf $(DESTDIR)/$(ETCDIR)/yaws.conf.template; \
9d7138b @klacke ""
authored
66 else \
c9778e0 @klacke added support for 2 additional configure
authored
67 echo "Installing $(DESTDIR)/$(ETCDIR)/yaws.conf"; \
9605d55 @klacke Make/build fixes
authored
68 mkdir -p $(DESTDIR)/$(ETCDIR); \
c9778e0 @klacke added support for 2 additional configure
authored
69 cp yaws.conf $(DESTDIR)/$(ETCDIR)/yaws.conf; \
9d7138b @klacke ""
authored
70 fi
Something went wrong with that request. Please try again.