diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 51 |
1 files changed, 4 insertions, 47 deletions
diff --git a/Makefile.am b/Makefile.am index df6430a..335cebc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,55 +1,12 @@ -eselectdir = $(datadir)/eselect/modules -nodist_eselect_DATA = src/php.eselect - -# Without EXTRA_DIST, these files don't wind up in the tarball. -EXTRA_DIST = openrc \ - src/70_mod_php.conf.in \ - src/php-fpm-launcher.in \ - src/php-fpm.logrotate.in - -if APACHE2 - # Without these set, we won't try to install the conf file. - apacheconfdir = $(sysconfdir)/apache2/modules.d - nodist_apacheconf_DATA = src/70_mod_php.conf -endif - -if FPM - # Same as the APACHE2 conditional. - initdir = $(sysconfdir)/init.d - nodist_init_SCRIPTS = openrc/init.d/php-fpm - - confdir = $(sysconfdir)/conf.d - nodist_conf_DATA = openrc/conf.d/php-fpm - - nodist_libexec_SCRIPTS = src/php-fpm-launcher - - logrotatedir = $(sysconfdir)/logrotate.d - nodist_logrotate_DATA = src/php-fpm.logrotate - - tmpfilesdir = $(prefix)/lib/tmpfiles.d - dist_tmpfiles_DATA = src/php-fpm.conf -endif - -# The next few rules allow us to replace bindir, libdir, etc. +# This command allows us to replace bindir, libdir, etc. # within our script and conf file. The example is taken # from the autoconf documentation and can be found in the # "Installation Directory Variables" section. -edit = sed -e 's|@BINDIR[@]|$(bindir)|g' \ +editgnudirs = sed -e 's|@BINDIR[@]|$(bindir)|g' \ -e 's|@LIBDIR[@]|$(libdir)|g' \ -e 's|@LIBEXECDIR[@]|$(libexecdir)|g' \ -e 's|@LOCALSTATEDIR[@]|$(localstatedir)|g' \ -e 's|@SYSCONFDIR[@]|$(sysconfdir)|g' +export editgnudirs - -$(nodist_eselect_DATA) $(nodist_apacheconf_DATA) $(nodist_init_SCRIPTS) $(nodist_libexec_SCRIPTS) $(nodist_logrotate_DATA): Makefile - rm -f $@ $@.tmp - srcdir=''; \ - test -f ./$@.in || srcdir=$(srcdir)/; \ - $(edit) $${srcdir}$@.in > $@.tmp - mv $@.tmp $@ - -src/php.eselect: src/php.eselect.in -src/php-fpm-launcher: src/php-fpm-launcher.in -src/php-fpm.logrotate: src/php-fpm.logrotate.in -src/70_mod_php.conf: src/70_mod_php.conf.in -openrc/init.d/php-fpm: openrc/init.d/php-fpm.in +SUBDIRS = src openrc/conf.d openrc/init.d |