3 ### Makefile for TrIPE startup scripts
5 ### (c) 2001 Straylight/Edgeware
8 ###----- Licensing notice ---------------------------------------------------
10 ### This file is part of Trivial IP Encryption (TrIPE).
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.
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
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/>.
25 include $(top_srcdir)/vars.am
29 ###--------------------------------------------------------------------------
30 ### Things to install.
32 ## Initialization script.
33 ## Nowhere sensible to put it; leave it uninstalled.
34 noinst_SCRIPTS += tripe-init
35 EXTRA_DIST += tripe-init.in
36 CLEANFILES += tripe-init
38 tripe-init: tripe-init.in Makefile
39 $(SUBST) $(srcdir)/tripe-init.in >$@.new $(SUBSTITUTIONS) && \
40 chmod +x $@.new && mv $@.new $@
42 ## Configuration file for the script.
43 EXTRA_DIST += tripe.conf
44 install-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)
51 rm -f $(DESTDIR)$(initconfig)
53 ## Necessary directories.
55 for i in "$(configdir)" "$(socketdir)"; do \
56 case "$$i" in /*) $(MKDIR_P) $(DESTDIR)$$i ;; esac; \
59 ###----- That's all, folks --------------------------------------------------