1# Copyright (c) 2011, 2013 2# The Regents of the University of California. All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are met: 6# * Redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer. 8# * Redistributions in binary form must reproduce the above copyright 9# notice, this list of conditions and the following disclaimer in the 10# documentation and/or other materials provided with the distribution. 11# * Neither the name of the University nor the names of its contributors 12# may be used to endorse or promote products derived from this software 13# without specific prior written permission. 14# 15# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 16# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# 27# @(#) $Id: Makefile.in 65 2021-03-27 22:33:05Z leres $ (LBL) 28 29# 30# Various configurable paths (remember to edit Makefile.in, not Makefile) 31# 32 33# Top level hierarchy 34prefix = @prefix@ 35datarootdir = @datarootdir@ 36datadir = @datadir@ 37exec_prefix = @exec_prefix@ 38# Pathname of directory to install the binary 39BINDEST = @BINDEST@ 40# Pathname of directory to install the man page 41MANDEST = @mandir@ 42 43# VPATH 44srcdir = @srcdir@ 45VPATH = @srcdir@ 46 47# 48# You shouldn't need to edit anything below here. 49# 50 51PROG = create-cert 52 53INSTALL = @INSTALL@ 54 55CLEANFILES = create-cert.sh 56 57all: 58 @true 59 60install: create-cert.sh 61 @if [ ! -e $(DESTDIR)$(BINDEST) ]; then \ 62 mkdir -p $(DESTDIR)$(BINDEST); \ 63 fi 64 @diff $(srcdir)/create-cert.sh $(DESTDIR)$(BINDEST)/create-cert >/dev/null 2>&1 || \ 65 $(INSTALL) -v -m 555 $(srcdir)/create-cert.sh $(DESTDIR)$(BINDEST)/create-cert 66 @diff $(srcdir)/create-cert.8 $(DESTDIR)$(MANDEST)/man8 >/dev/null 2>&1 || \ 67 $(INSTALL) -v -m 444 $(srcdir)/create-cert.8 $(DESTDIR)$(MANDEST)/man8 68 69clean: force 70 @true 71 72distclean: force 73 rm -rf $(CLEANFILES) Makefile config.cache config.log config.status \ 74 autom4te.cache gnuc.h os-proto.h acl.exp 75 76man: 77 man ./create-cert.8 78 79dist tar: force 80 @cwd=`pwd` ; name=${PROG}-`cat VERSION` ; \ 81 list="" ; tar="tar chf" ; temp="$${name}.tar.gz" ; \ 82 for i in `cat FILES` ; do list="$${list} $${name}/$${i}" ; done; \ 83 echo \ 84 "rm -f $${name}.tar.gz.asc $${name}; ln -s . $${name}" ; \ 85 rm -f $${name}.tar.gz.asc $${name}; ln -s . $${name} ; \ 86 echo \ 87 "$${tar} - [lots of files] | gzip > $${temp}" ; \ 88 $${tar} - $${list} | gzip > $${temp} ; \ 89 echo \ 90 "rm -f $${name}" ; \ 91 rm -f $${name} 92 93sign: 94 @name=${PROG}-`cat VERSION`.tar.gz; \ 95 set -x; \ 96 rm -f $${name}.asc; \ 97 gpg --armor --detach-sign $${name} 98 99force: /tmp 100depend: force $(GENSRC) 101 ./mkdep -c $(CC) $(DEFS) $(INCLS) $(SRCS) $(GENSRC) $(LIBSRCS) 102