1219820SjeffSUBDIRS = src 2219820Sjeff 3219820SjeffEXTRA_DIST = libsdp.spec.in libsdp.conf 4219820Sjeff 5219820Sjeffdist-hook: libsdp.spec 6219820Sjeff cp libsdp.spec $(distdir) 7219820Sjeff 8219820Sjeffinstall-data-hook: 9219820Sjeff if test -e $(DESTDIR)$(sysconfdir)/libsdp.conf; then \ 10219820Sjeff diff -q $(srcdir)/libsdp.conf $(DESTDIR)$(sysconfdir)/libsdp.conf 1> /dev/null; \ 11219820Sjeff if test $$? == 1; then \ 12219820Sjeff t=$(shell date +'%Y%m%d%H%M%S'); \ 13219820Sjeff cp -p $(srcdir)/libsdp.conf \ 14219820Sjeff $(DESTDIR)$(sysconfdir)/libsdp.conf.$$t; \ 15219820Sjeff echo "NOTE: existing libsdp.conf was not updated."; \ 16219820Sjeff echo " libsdp.conf installed as ibsdp.conf.$$t instead."; \ 17219820Sjeff fi; \ 18219820Sjeff else \ 19219820Sjeff if test ! -d $(DESTDIR)$(sysconfdir); then \ 20219820Sjeff mkdir -p $(DESTDIR)$(sysconfdir); \ 21219820Sjeff fi; \ 22219820Sjeff cp -p $(srcdir)/libsdp.conf $(DESTDIR)$(sysconfdir)/libsdp.conf; \ 23219820Sjeff fi 24