chiark / gitweb /
Upgrade licence to GPLv3+.
[tripe] / init / Makefile.am
... / ...
CommitLineData
1### -*-makefile-*-
2###
3### Makefile for TrIPE startup scripts
4###
5### (c) 2001 Straylight/Edgeware
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This file is part of Trivial IP Encryption (TrIPE).
11###
12### TrIPE is free software: you can redistribute it and/or modify it under
13### the terms of the GNU General Public License as published by the Free
14### Software Foundation; either version 3 of the License, or (at your
15### option) any later version.
16###
17### TrIPE is distributed in the hope that it will be useful, but WITHOUT
18### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19### FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20### for more details.
21###
22### You should have received a copy of the GNU General Public License
23### along with TrIPE. If not, see <https://www.gnu.org/licenses/>.
24
25include $(top_srcdir)/vars.am
26
27noinst_SCRIPTS =
28
29###--------------------------------------------------------------------------
30### Things to install.
31
32## Initialization script.
33## Nowhere sensible to put it; leave it uninstalled.
34noinst_SCRIPTS += tripe-init
35EXTRA_DIST += tripe-init.in
36CLEANFILES += tripe-init
37
38tripe-init: tripe-init.in Makefile
39 $(SUBST) $(srcdir)/tripe-init.in >$@.new $(SUBSTITUTIONS) && \
40 chmod +x $@.new && mv $@.new $@
41
42## Configuration file for the script.
43EXTRA_DIST += tripe.conf
44install-data-local:: tripe.conf
45 initconfig=$(initconfig) && dir=$${initconfig%/*} && \
46 $(MKDIR_P) $(DESTDIR)$$dir
47 test -f $(DESTDIR)$(initconfig) || \
48 $(INSTALL_DATA) $(srcdir)/tripe.conf \
49 $(DESTDIR)$(initconfig)
50uninstall-local::
51 rm -f $(DESTDIR)$(initconfig)
52
53## Necessary directories.
54install-data-hook::
55 for i in "$(configdir)" "$(socketdir)"; do \
56 case "$$i" in /*) $(MKDIR_P) $(DESTDIR)$$i ;; esac; \
57 done
58
59###----- That's all, folks --------------------------------------------------