summaryrefslogtreecommitdiff
blob: fca452fd2a5022b17d960a190d93135efd30f066 (plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
eselectdir = $(datadir)/eselect/modules
nodist_eselect_DATA = php.eselect

# Without EXTRA_DIST, these files don't wind up in the tarball.
EXTRA_DIST = 70_mod_php.conf.in \
             php-fpm-launcher.in \
             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 = 70_mod_php.conf
endif

if FPM
  # Same as the APACHE2 conditional.
  nodist_libexec_SCRIPTS = php-fpm-launcher

  logrotatedir = $(sysconfdir)/logrotate.d
  nodist_logrotate_DATA = php-fpm.logrotate

  tmpfilesdir = $(prefix)/lib/tmpfiles.d
  dist_tmpfiles_DATA = php-fpm.conf
endif


# Otherwise these don't get cleaned up by "make distclean"
DISTCLEANFILES = $(nodist_eselect_DATA) \
                 $(nodist_apacheconf_DATA) \
                 $(nodist_libexec_SCRIPTS) \
                 $(nodist_logrotate_DATA)

$(DISTCLEANFILES): Makefile
	rm -f $@ $@.tmp
	$(editgnudirs) $@.in > $@.tmp
	mv $@.tmp $@

php.eselect: php.eselect.in
php-fpm-launcher: php-fpm-launcher.in
php-fpm.logrotate: php-fpm.logrotate.in
70_mod_php.conf: 70_mod_php.conf.in