Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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