chiark / gitweb /
build: Install some more files to their eventual locations.
[tripe] / init / Makefile.am
index 50583a8ab3221f5d28b20e3c8289914665b938e3..e8d662d5852fb9a97c3901c29ed34393f22fd4c3 100644 (file)
@@ -42,9 +42,17 @@ tripe-init: tripe-init.in Makefile
 
 ## Configuration file for the script.
 EXTRA_DIST             += tripe.conf
+install-data-local:: tripe.conf
+       initconfig=$(initconfig) && dir=$${initconfig%/*} && \
+               $(MKDIR_P) $(DESTDIR)$$dir
+       test -f $(DESTDIR)$(initconfig) || \
+               $(INSTALL_SCRIPT) $(srcdir)/tripe.conf \
+                       $(DESTDIR)$(initconfig)
+uninstall-local::
+       rm -f $(DESTDIR)$(initconfig)
 
 ## Necessary directories.
-install-data-hook:
+install-data-hook::
        for i in "$(configdir)" "$(socketdir)"; do \
          case "$$i" in /*) $(MKDIR_P) $(DESTDIR)$$i ;; esac; \
        done