blob: f9fd59f8d022f2b0b07f79c3145ab836a27f9fc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
SUBDIRS = src
EXTRA_DIST = libsdp.spec.in libsdp.conf scripts/libsdp.logrotate
dist-hook: libsdp.spec
cp libsdp.spec $(distdir)
install-data-hook:
if test -e $(DESTDIR)$(sysconfdir)/libsdp.conf; then \
diff -q $(srcdir)/libsdp.conf $(DESTDIR)$(sysconfdir)/libsdp.conf 1> /dev/null; \
if test $$? == 1; then \
t=$(shell date +'%Y%m%d%H%M%S'); \
cp -p $(srcdir)/libsdp.conf \
$(DESTDIR)$(sysconfdir)/libsdp.conf.$$t; \
echo "NOTE: existing libsdp.conf was not updated."; \
echo " libsdp.conf installed as ibsdp.conf.$$t instead."; \
fi; \
else \
if test ! -d $(DESTDIR)$(sysconfdir); then \
mkdir -p $(DESTDIR)$(sysconfdir); \
fi; \
cp -p $(srcdir)/libsdp.conf $(DESTDIR)$(sysconfdir)/libsdp.conf; \
fi
|