forked from coova/coova-chilli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
28 lines (21 loc) · 810 Bytes
/
Makefile.am
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
## Process this file with automake to produce Makefile.in
chillidir = $(sysconfdir)/chilli
chilli_SCRIPTS = wwwsh
wwwdir = $(chillidir)/www
wwwDATAFILES = \
chillijs.chi chillijs.chi.sh chilliform.chi chilliform.chi.sh \
coova.html coova.jpg coova.png wait.gif openid.gif \
ChilliLibrary.js chilliController.js json_html.tmpl
www_DATA = $(wwwDATAFILES) config.sh
EXTRA_DIST = $(chilli_SCRIPTS) $(wwwDATAFILES) config.sh.in
edit = sed \
-e 's,@SBINDIR\@,$(sbindir),g' \
-e 's,@INITDIR\@,$(sysconfdir)/init.d,g' \
-e 's,@VARRUN\@,$(localstatedir)/run,g' \
-e 's,@ETCCHILLI\@,$(sysconfdir)/chilli,g' \
-e 's,@SYSCONFDIR\@,$(sysconfdir),g' \
-e 's,@PREFIX\@,$(prefix),g'
config.sh: Makefile config.sh.in
rm -f config.sh config.sh.tmp
$(edit) config.sh.in >config.sh.tmp
mv config.sh.tmp config.sh