2 # Copyright (c) 2011 Todd C. Miller <Todd.Miller@courtesan.com>
4 # Permission to use, copy, modify, and distribute this software for any
5 # purpose with or without fee is hereby granted, provided that the above
6 # copyright notice and this permission notice appear in all copies.
8 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
20 #### Start of system configuration section. ####
23 top_builddir = @top_builddir@
24 top_srcdir = @top_srcdir@
25 includedir = @includedir@
27 # Our install program supports extra flags...
28 INSTALL = $(SHELL) $(top_srcdir)/install-sh -c
30 # Where to install things...
32 exec_prefix = @exec_prefix@
35 sysconfdir = @sysconfdir@
36 libexecdir = @libexecdir@
37 datarootdir = @datarootdir@
38 localstatedir = @localstatedir@
40 # User and group ids the installed files should be "owned" by
44 #### End of system configuration section. ####
50 Makefile: $(srcdir)/Makefile.in
51 (cd $(top_builddir) && ./config.status --file include/Makefile)
57 install: install-includes
60 $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(includedir)
66 install-includes: install-dirs
67 $(INSTALL) -O $(install_uid) -G $(install_gid) -m 0444 $(srcdir)/sudo_plugin.h $(DESTDIR)$(includedir)
72 -rm -f $(DESTDIR)$(includedir)/sudo_plugin.h