mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-28 03:20:12 +01:00
117 lines
3.1 KiB
Makefile
117 lines
3.1 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. @INCDIR@ @sql_includes@
|
|
LIBDIR = -L. @LIBDIR@ @LDFLAGS@
|
|
LIBS = @LIBS@ @sql_libs@
|
|
RUNNING_USER = @RUNNING_USER@
|
|
RUNNING_GROUP = `@id_bin@ -gn $(RUNNING_USER)`
|
|
|
|
SUBDIRS = @SUBDIRS@
|
|
|
|
RECURSIVE_TARGETS = all-recursive install-recursive clean-recursive distclean-recursive
|
|
|
|
MAKE = `which @MAKE@`
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
|
piler-config.h stamp.h stamp-h1 params.h
|
|
|
|
all: all-recursive
|
|
install: installdirs install-recursive
|
|
|
|
|
|
$(RECURSIVE_TARGETS):
|
|
@failcom='exit 1'; \
|
|
for f in x $$MAKEFLAGS; do \
|
|
case $$f in \
|
|
*=* | --[!k]*);; \
|
|
*k*) failcom='fail=yes';; \
|
|
esac; \
|
|
done; \
|
|
dot_seen=no; \
|
|
target=`echo $@ | sed s/-recursive//`; \
|
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
|
echo "Making $$target in $$subdir"; \
|
|
if test "$$subdir" = "."; then \
|
|
dot_seen=yes; \
|
|
local_target="$$target-am"; \
|
|
else \
|
|
local_target="$$target"; \
|
|
fi; \
|
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
|
|| eval $$failcom; \
|
|
done; \
|
|
if test "$$dot_seen" = "no"; then \
|
|
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
|
fi; test -z "$$fail"
|
|
|
|
|
|
|
|
installdirs: mkinstalldirs
|
|
$(srcdir)/mkinstalldirs \
|
|
$(DESTDIR)$(bindir) $(DESTDIR)$(sbindir) $(DESTDIR)$(libdir) $(DESTDIR)$(libexecdir)/piler $(DESTDIR)$(sysconfdir) \
|
|
$(DESTDIR)$(localstatedir)/piler/store \
|
|
$(DESTDIR)$(localstatedir)/piler/stat $(DESTDIR)$(localstatedir)/piler/tmp \
|
|
$(DESTDIR)$(localstatedir)/piler/sphinx
|
|
|
|
$(INSTALL) -d -m 0755 -o $(RUNNING_USER) -g $(RUNNING_GROUP) $(DESTDIR)$(localstatedir)/run/piler
|
|
$(INSTALL) -d -m 0700 -o $(RUNNING_USER) -g $(RUNNING_GROUP) $(DESTDIR)$(localstatedir)/piler/store
|
|
$(INSTALL) -d -m 0700 -o $(RUNNING_USER) -g $(RUNNING_GROUP) $(DESTDIR)$(localstatedir)/piler/imap
|
|
$(INSTALL) -d -m 0755 -o $(RUNNING_USER) -g $(RUNNING_GROUP) $(DESTDIR)$(localstatedir)/piler/stat
|
|
$(INSTALL) -d -m 0711 -o $(RUNNING_USER) -g $(RUNNING_GROUP) $(DESTDIR)$(localstatedir)/piler/tmp
|
|
$(INSTALL) -d -m 0755 -o $(RUNNING_USER) -g $(RUNNING_GROUP) $(DESTDIR)$(localstatedir)/piler/sphinx
|
|
|
|
|
|
install-am:
|
|
|
|
|
|
uninstall:
|
|
rm -f \
|
|
$(DESTDIR)$(sbindir)/piler $(DESTDIR)$(sbindir)/pilerconf $(DESTDIR)$(libdir)/libpiler.* \
|
|
$(DESTDIR)$(sysconfdir)/piler.conf
|
|
|
|
rm -rf $(DESTDIR)$(libexecdir)/piler $(DESTDIR)$(includedir)/piler $(DESTDIR)$(datarootdir)/piler
|
|
@echo "I left the $(DESTDIR)$(localstatedir)/piler directory, remove it for yourself"
|
|
|
|
|
|
all-am: Makefile
|
|
|
|
clean: clean-recursive
|
|
rm -f piler.key
|
|
|
|
clean-am: clean-generic
|
|
|
|
clean-generic:
|
|
|
|
distclean: distclean-recursive
|
|
rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
|
rm -f Makefile piler.key
|
|
|
|
distclean-am: clean-am
|
|
|
|
key:
|
|
dd if=/dev/urandom bs=56 count=1 of=piler.key
|
|
|
|
postinstall:
|
|
@sh util/postinstall.sh $(RUNNING_USER) $(RUNNING_GROUP) $(sysconfdir) $(localstatedir) $(libexecdir)
|
|
|
|
|
|
|