2011-11-14 15:57:52 +01:00
|
|
|
SHELL = @SHELL@
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
|
|
|
includedir = @includedir@
|
|
|
|
libdir = @libdir@
|
|
|
|
libexecdir = @libexecdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
sysconfdir = @sysconfdir@
|
|
|
|
mandir = @mandir@
|
|
|
|
datarootdir = @datarootdir@
|
|
|
|
localstatedir = @localstatedir@
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = @CFLAGS@ @CPPFLAGS@
|
|
|
|
DEFS = @defs@
|
2013-05-16 22:13:46 +02:00
|
|
|
INCDIR = -I. -I../.. -I../../src @INCDIR@ @sql_includes@
|
2011-11-14 15:57:52 +01:00
|
|
|
LIBDIR = -L. @LIBDIR@ @LDFLAGS@ -L../../src
|
2013-05-16 22:13:46 +02:00
|
|
|
LIBS = @LIBS@ @sql_libs@
|
2011-11-14 15:57:52 +01:00
|
|
|
RUNNING_USER = @RUNNING_USER@
|
|
|
|
RUNNING_GROUP = `@id_bin@ -gn $(RUNNING_USER)`
|
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
|
|
|
|
all:
|
|
|
|
sed -e 's%pidfile=.*%pidfile=$(localstatedir)/run/piler/piler.pid%g' \
|
2016-09-18 10:17:59 +02:00
|
|
|
-e 's%pemfile=%pemfile=$(sysconfdir)/piler/piler.pem%g' \
|
2013-09-28 14:50:39 +02:00
|
|
|
-e 's%workdir=.*%workdir=$(localstatedir)/piler/tmp%g' < $(srcdir)/example.conf | grep -v ^\; | grep '=' | sort > $(srcdir)/piler.conf
|
2011-11-14 15:57:52 +01:00
|
|
|
|
|
|
|
install:
|
2016-09-18 10:17:59 +02:00
|
|
|
$(INSTALL) -m 0640 -g $(RUNNING_GROUP) $(srcdir)/piler.conf $(DESTDIR)$(sysconfdir)/piler/piler.conf.dist
|
|
|
|
if [ ! -f "$(DESTDIR)$(sysconfdir)/piler/piler.conf" ]; then $(INSTALL) -m 0640 -g $(RUNNING_GROUP) $(srcdir)/piler.conf $(DESTDIR)$(sysconfdir)/piler/piler.conf; fi
|
2015-01-09 10:49:52 +01:00
|
|
|
sed -e 's%LOCALSTATEDIR%$(localstatedir)%g' $(srcdir)/sphinx.conf.in > sphinx.conf.dist
|
2016-09-18 10:17:59 +02:00
|
|
|
$(INSTALL) -m 0644 -g $(RUNNING_GROUP) $(srcdir)/sphinx.conf.dist $(DESTDIR)$(sysconfdir)/piler/sphinx.conf.dist
|
2016-12-31 14:28:06 +01:00
|
|
|
$(INSTALL) -m 0644 -g $(RUNNING_GROUP) $(srcdir)/cron.jobs.in $(DESTDIR)$(datarootdir)/piler/piler.cron
|
|
|
|
sed -i -e 's%LOCALSTATEDIR%$(localstatedir)%g' $(DESTDIR)$(datarootdir)/piler/piler.cron
|
|
|
|
sed -i -e 's%LIBEXECDIR%$(libexecdir)%g' $(DESTDIR)$(datarootdir)/piler/piler.cron
|
|
|
|
sed -i -e 's%BINDIR%$(bindir)%g' $(DESTDIR)$(datarootdir)/piler/piler.cron
|
|
|
|
sed -i -e 's%SYSCONFDIR%$(sysconfdir)%g' $(DESTDIR)$(datarootdir)/piler/piler.cron
|
2011-11-14 15:57:52 +01:00
|
|
|
|
|
|
|
clean:
|
2015-01-09 10:49:52 +01:00
|
|
|
rm -f piler.conf cron.jobs sphinx.conf.dist
|
2011-11-14 15:57:52 +01:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile
|