blob: 13c5680991f463e7fe4a171fd7f4cb3d459660c5 (
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
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
|