2 # Copyright (c) 2011-2012 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@
26 cross_compiling = @CROSS_COMPILING@
28 # Our install program supports extra flags...
29 INSTALL = $(SHELL) $(top_srcdir)/install-sh -c
31 # Where to install things...
33 exec_prefix = @exec_prefix@
36 sysconfdir = @sysconfdir@
37 libexecdir = @libexecdir@
38 datarootdir = @datarootdir@
39 localstatedir = @localstatedir@
41 # User and group ids the installed files should be "owned" by
45 #### End of system configuration section. ####
51 Makefile: $(srcdir)/Makefile.in
52 (cd $(top_builddir) && ./config.status --file include/Makefile)
58 install: install-includes
61 $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(includedir)
67 install-includes: install-dirs
68 $(INSTALL) -O $(install_uid) -G $(install_gid) -m 0644 $(srcdir)/sudo_plugin.h $(DESTDIR)$(includedir)
73 -rm -f $(DESTDIR)$(includedir)/sudo_plugin.h