Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 161 lines (131 sloc) 5.973 kb
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
1 ## Cherokee: Makefile.am -*- makefile -*-
2
3998648 @alobbs Adds a new script to build MacOS X binary packages (.dmg). Both this
alobbs authored
3 SUBDIRS = po m4 www icons themes qa doc . admin contrib cherokee cget packages dbslayer
8bbad69 @alobbs Improves the OpenSolaris (& S10) SMF support. Thanks to Miguel Vidal
alobbs authored
4 SUFFIXES = .sample.pre .sample .h.pre .h .xml.pre .xml
54449f1 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2392 5dc97367-97f1...
alobbs authored
5 ACLOCAL_AMFLAGS = -I m4
6
7 bin_SCRIPTS = cherokee-config
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
8
9 # M4 macro file for inclusion with autoconf
10 m4datadir = "$(datadir)/aclocal"
11 m4data_DATA = cherokee.m4
12
13 # Man pag
ae28557 Documentation updates
taher authored
14 man_MANS = \
15 cherokee.1 \
16 cherokee-config.1 \
17 cherokee-tweak.1 \
18 cherokee-admin.1 \
19 cherokee-worker.1 \
20 cherokee-admin-launcher.1
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
21
22 # pkg-config
23 pkgconfigdir = $(libdir)/pkgconfig
24 pkgconfig_DATA = cherokee.pc
25
26 # Configuration files
27 cherokeeconfdir = $(sysconfdir)/cherokee
ea8ac71 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1183 5dc97367-97f1...
alobbs authored
28 cherokeeadmindir = $(datadir)/cherokee/admin
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
29
4ef168f @alobbs Updates the compilation variables replacement commands.
alobbs authored
30 .h.pre.h:
32481fb @alobbs Adds a new --with-cgiroot parameter to the configure script. It allows
alobbs authored
31 sed -e "s|%sysconfdir%|${sysconfdir}|g; s|%sbindir%|${sbindir}|g; s|%docdir%|${docdir}|g; s|%prefix%|${prefix}|g; s|%localstatedir%|${localstatedir}|g; s|%libdir%|${libdir}|g; s|%wwwroot%|${WWW_ROOT}|g; s|%cgiroot%|${CGI_ROOT}|g; s|%version%|${PACKAGE_VERSION}|g; s|%phpcgi%|${PHPCGI}|g; s|%datadir%|${datadir}|g; s|%localedir%|${localedir}|g" $< > $@
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
32 .sample.pre.sample:
32481fb @alobbs Adds a new --with-cgiroot parameter to the configure script. It allows
alobbs authored
33 sed -e "s|%sysconfdir%|${sysconfdir}|g; s|%sbindir%|${sbindir}|g; s|%docdir%|${docdir}|g; s|%prefix%|${prefix}|g; s|%localstatedir%|${localstatedir}|g; s|%libdir%|${libdir}|g; s|%wwwroot%|${WWW_ROOT}|g; s|%cgiroot%|${CGI_ROOT}|g; s|%version%|${PACKAGE_VERSION}|g; s|%phpcgi%|${PHPCGI}|g; s|%datadir%|${datadir}|g; s|%localedir%|${localedir}|g" $< > $@
8bbad69 @alobbs Improves the OpenSolaris (& S10) SMF support. Thanks to Miguel Vidal
alobbs authored
34 .xml.pre.xml:
32481fb @alobbs Adds a new --with-cgiroot parameter to the configure script. It allows
alobbs authored
35 sed -e "s|%sysconfdir%|${sysconfdir}|g; s|%sbindir%|${sbindir}|g; s|%docdir%|${docdir}|g; s|%prefix%|${prefix}|g; s|%localstatedir%|${localstatedir}|g; s|%libdir%|${libdir}|g; s|%wwwroot%|${WWW_ROOT}|g; s|%cgiroot%|${CGI_ROOT}|g; s|%version%|${PACKAGE_VERSION}|g; s|%phpcgi%|${PHPCGI}|g; s|%datadir%|${datadir}|g; s|%localedir%|${localedir}|g" $< > $@
4ef168f @alobbs Updates the compilation variables replacement commands.
alobbs authored
36
603d94e @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1282 5dc97367-97f1...
alobbs authored
37
38 CONSTANTS_PRE = \
39 constants.h.pre
40
41 CONSTANTS = \
42 $(CONSTANTS_PRE:.h.pre=.h)
43
ffb3e55 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@354 5dc97367-97f1-...
alobbs authored
44 CONFS_PRE = \
809af53 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@343 5dc97367-97f1-...
alobbs authored
45 cherokee.conf.sample.pre \
a36bc48 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@347 5dc97367-97f1-...
alobbs authored
46 performance.conf.sample.pre
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
47
48 CONFS = \
49 $(CONFS_PRE:.sample.pre=.sample)
50
8bbad69 @alobbs Improves the OpenSolaris (& S10) SMF support. Thanks to Miguel Vidal
alobbs authored
51 XMLS_PRE = \
64fd649 Clean up: Trims trailing spaces.
taher authored
52 http-cherokee.xml.pre
8bbad69 @alobbs Improves the OpenSolaris (& S10) SMF support. Thanks to Miguel Vidal
alobbs authored
53
54 XMLS = \
55 $(XMLS_PRE:.xml.pre=.xml)
56
57
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
58 WINDOWS_PORT_FILES = \
59 config.h.win32
60
4202e8b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1084 5dc97367-97f1...
alobbs authored
61 CLEANFILES = \
8bbad69 @alobbs Improves the OpenSolaris (& S10) SMF support. Thanks to Miguel Vidal
alobbs authored
62 $(XMLS) \
603d94e @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1282 5dc97367-97f1...
alobbs authored
63 $(CONFS) \
f01463b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2517 5dc97367-97f1...
alobbs authored
64 $(CONSTANTS)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
65
4202e8b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1084 5dc97367-97f1...
alobbs authored
66 DISTCLEANFILES = \
67 cherokee.pc
68
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
69 COMPILATION_TESTS = \
524689c @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@356 5dc97367-97f1-...
alobbs authored
70 debian_testing.sh \
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
71 debian_testing_chroot.sh
72
73
68a23f5 @alobbs Adds support for MacOS X's launchd. It implements RFE #871:
alobbs authored
74 EXTRA_DIST = \
75 http-cherokee.xml \
76 cherokee.spec \
77 cherokee.spec.in \
78 org.cherokee.webserver.plist \
79 org.cherokee.webserver.plist.in \
80 SUNWcherokee.spec \
81 pam.d_cherokee \
82 cherokee.pc.in \
83 developers.py \
84 $(m4data_DATA) \
85 $(XMLS_PRE) \
86 $(CONFS_PRE) \
87 $(CONSTANTS_PRE) \
88 $(man_MANS) \
89 $(WINDOWS_PORT_FILES) \
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
90 $(COMPILATION_TESTS)
91
0d90d10 @alobbs Adds a couple of new ./configure parameters: --with-wwwuser and
alobbs authored
92 all-local: $(CONSTANTS) $(CONFS) $(XMLS) add_user_group
93
94 add_user_group: cherokee.conf.sample
95 @if test "x$(WWW_USER)" != "x" ; then \
96 grep -e '^server.user' cherokee.conf.sample >/dev/null 2>/dev/null || ( \
97 echo "Adding default user '$(WWW_USER)' to cherokee.conf.sample.."; \
98 echo 'server!user = '$(WWW_USER) >> cherokee.conf.sample; \
99 ); \
100 fi
101 @if test "x$(WWW_GROUP)" != "x" ; then \
102 grep -e '^server.group' cherokee.conf.sample >/dev/null 2>/dev/null || ( \
103 echo "Adding default group '$(WWW_GROUP)' to cherokee.conf.sample.."; \
104 echo 'server!group = '$(WWW_GROUP) >> cherokee.conf.sample; \
105 ); \
106 fi
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
107
108 install-data-local-config:
109 @$(mkinstalldirs) $(DESTDIR)$(pkgincludedir);
110 $(INSTALL_DATA) $(top_builddir)/config.h $(DESTDIR)$(pkgincludedir)/cherokee-config.h
111
112 uninstall-local-config:
113 @if test -f $(DESTDIR)$(pkgincludedir)/cherokee-config.h; then \
114 echo "rm -f $(DESTDIR)$(pkgincludedir)/cherokee-config.h"; \
115 $(RM) -f $(DESTDIR)$(pkgincludedir)/cherokee-config.h; \
116 fi
117
be1b01e @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1323 5dc97367-97f1...
alobbs authored
118 install-data-local: $(CONFS) install-data-local-config
96c15c4 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1333 5dc97367-97f1...
alobbs authored
119 @$(mkinstalldirs) $(DESTDIR)$(localstatedir)
120 @$(mkinstalldirs) $(DESTDIR)$(localstatedir)/run
121 @$(mkinstalldirs) $(DESTDIR)$(localstatedir)/log
9fc2651 @alobbs Adds support for "information collectors" (a new plug-in type). It
alobbs authored
122 @$(mkinstalldirs) $(DESTDIR)$(localstatedir)/lib/cherokee/graphs/images
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
123 @$(mkinstalldirs) $(DESTDIR)$(cherokeeconfdir)
d9febed @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1300 5dc97367-97f1...
alobbs authored
124 @$(mkinstalldirs) $(DESTDIR)$(cherokeeadmindir)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
125 @if test -f $(DESTDIR)$(cherokeeconfdir)/cherokee.conf ; then \
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97f1-...
alobbs authored
126 echo "$@ will not overwrite existing $(DESTDIR)$(cherokeeconfdir)/cherokee.conf"; \
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
127 else \
128 $(INSTALL_DATA) $(top_builddir)/cherokee.conf.sample $(DESTDIR)$(cherokeeconfdir)/cherokee.conf; \
129 fi
ea8ac71 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1183 5dc97367-97f1...
alobbs authored
130 $(INSTALL_DATA) $(top_builddir)/cherokee.conf.sample $(DESTDIR)$(cherokeeadmindir)/cherokee.conf.sample
63945a4 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2996 5dc97367-97f1...
alobbs authored
131 $(INSTALL_DATA) $(top_builddir)/performance.conf.sample $(DESTDIR)$(cherokeeadmindir)/performance.conf.sample
809af53 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@343 5dc97367-97f1-...
alobbs authored
132 @if test -f $(DESTDIR)$(cherokeeconfdir)/cherokee.conf.perf_sample ; then \
133 echo "$@ will not overwrite existing $(DESTDIR)$(cherokeeconfdir)/cherokee.conf.perf_sample"; \
134 else \
a36bc48 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@347 5dc97367-97f1-...
alobbs authored
135 $(INSTALL_DATA) $(top_builddir)/performance.conf.sample $(DESTDIR)$(cherokeeconfdir)/cherokee.conf.perf_sample; \
809af53 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@343 5dc97367-97f1-...
alobbs authored
136 fi
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
137 @if test -d $(DESTDIR)$(sysconfdir)/pam.d && test ! -d $(DESTDIR)$(sysconfdir)/pam.d/cherokee ; then \
138 $(INSTALL_DATA) $(top_srcdir)/pam.d_cherokee $(DESTDIR)$(sysconfdir)/pam.d/cherokee; \
139 fi
140 $(mkinstalldirs) $(DESTDIR)$(localstatedir)
141
142 uninstall-local: uninstall-local-config
143 @if test -f $(DESTDIR)$(cherokeeconfdir)/cherokee.conf ; then \
144 echo "rm -f $(DESTDIR)$(cherokeeconfdir)/cherokee.conf"; \
145 $(RM) -f $(DESTDIR)$(cherokeeconfdir)/cherokee.conf; \
146 fi
809af53 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@343 5dc97367-97f1-...
alobbs authored
147 @if test -f $(DESTDIR)$(cherokeeconfdir)/cherokee.conf.perf_sample ; then \
148 echo "rm -f $(DESTDIR)$(cherokeeconfdir)/cherokee.conf.perf_sample"; \
149 $(RM) -f $(DESTDIR)$(cherokeeconfdir)/cherokee.conf.perf_sample; \
150 fi
f90cba6 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3008 5dc97367-97f1...
alobbs authored
151 $(RM) -f $(DESTDIR)$(cherokeeadmindir)/cherokee.conf.sample
152 $(RM) -f $(DESTDIR)$(cherokeeadmindir)/performance.conf.sample
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
153
154 test:
ef38040 @alobbs Adds a new 'test' target to the documentation Makefile.
alobbs authored
155 $(MAKE) -C doc test
42ff14d @alobbs Now 'make test' checks that all the Python files compile.
alobbs authored
156 $(MAKE) -C admin test
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
157 $(MAKE) -C qa test
3f427d2 @alobbs Adds a (handy) update-po target.
alobbs authored
158
159 update-po:
160 $(MAKE) -C po/admin update-po
Something went wrong with that request. Please try again.