Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 28 lines (19 sloc) 0.718 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
include ../include.mk


all debug: ../bin/yaws yaws.conf

../bin/yaws: yaws.template
VARDIR='$(VARDIR)' ERLBINDIR='$(ERLBINDIR)' \
ERL='$(ERL)' WERL='$(WERL)' ./gen-yaws > $@
chmod +x $@


local_install: ../bin/yaws
VARDIR="${HOME}/var" ./local-install true

yaws.conf:
YAWSDIR='$(LIBDIR)/yaws' LOGDIR='$(PREFIX)/var/log/yaws' \
VARDIR='$(VARDIR)' PORT=80 DOCROOT='$(VARDIR)/yaws/www' \
CERTDIR='$(ETCDIR)/yaws' SSLPORT=443 ./gen-yaws-conf > $@

clean:
rm -f ../bin/yaws yaws.conf

install: .install

.install:
PREFIX='$(PREFIX)' ETCDIR='$(ETCDIR)' VARDIR='$(VARDIR)' \
ERLBINDIR='$(ERLBINDIR)' DESTDIR='$(DESTDIR)' LIBDIR='$(LIBDIR)' \
ERL='$(subst ",,$(ERL))' WERL='$(subst ",,$(WERL))' ./regular-install
Something went wrong with that request. Please try again.