mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:31:58 +01:00
4021d4687d
Signed-off-by: Janos SUTO <sj@acts.hu>
61 lines
2.7 KiB
Makefile
61 lines
2.7 KiB
Makefile
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@
|
|
INCDIR = -I. -I../.. -I../../src @INCDIR@ @sql_includes@
|
|
LIBDIR = -L. @LIBDIR@ @LDFLAGS@ -L../../src
|
|
LIBS = @LIBS@ @sql_libs@
|
|
RUNNING_USER = @RUNNING_USER@
|
|
RUNNING_GROUP = `@id_bin@ -gn $(RUNNING_USER)`
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
all:
|
|
sed -e "s%BINDIR%$(bindir)%" -e "s%__SYSCONFDIR%$(sysconfdir)%" -e "s%__LOCALSTATEDIR%$(localstatedir)%" -e "s%__LIBEXECDIR%$(libexecdir)%" -e "s%__DATAROOTDIR%$(datarootdir)%" $(srcdir)/postinstall.sh.in > $(srcdir)/postinstall.sh
|
|
sed -e "s%SYSCONFDIR%$(sysconfdir)%" $(srcdir)/indexer.delta.sh.in > $(srcdir)/indexer.delta.sh
|
|
sed -e "s%SYSCONFDIR%$(sysconfdir)%" $(srcdir)/indexer.main.sh.in > $(srcdir)/indexer.main.sh
|
|
sed -e "s%SYSCONFDIR%$(sysconfdir)%" $(srcdir)/indexer.attachment.sh.in > $(srcdir)/indexer.attachment.sh
|
|
|
|
install:
|
|
$(INSTALL) -m 0755 $(srcdir)/automated-search.php $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/daily-report.php $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/gmail-imap-import.php $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/generate_stats.php $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/get-token.py $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/refresh-token.py $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/healthcheck.sh $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/mailstat.php $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/sign.php $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/indexer.delta.sh $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/indexer.main.sh $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/indexer.attachment.sh $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/import.sh $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/imapfetch.py $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/purge.sh $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/pilerpurge.py $(DESTDIR)$(libexecdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/postinstall.sh $(DESTDIR)$(libexecdir)/piler
|
|
|
|
$(INSTALL) -m 0755 $(srcdir)/db-mysql.sql $(DESTDIR)$(datarootdir)/piler
|
|
$(INSTALL) -m 0755 $(srcdir)/db-mysql-root.sql.in $(DESTDIR)$(datarootdir)/piler
|
|
$(INSTALL) -m 0644 -o $(RUNNING_USER) -g $(RUNNING_GROUP) $(srcdir)/deduphelper $(DESTDIR)$(datarootdir)/piler
|
|
|
|
clean:
|
|
rm -f postinstall.sh
|
|
|
|
distclean: clean
|
|
rm -f Makefile
|