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 datarootdir = @datarootdir@
33 localstatedir = @localstatedir@
35 # User and group ids the installed files should be "owned" by
39 #### End of system configuration section. ####
45 Makefile: $(srcdir)/Makefile.in
46 (cd $(top_builddir) && ./config.status --file include/Makefile)
52 install: install-dirs install-includes
55 $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(includedir)
61 install-includes: install-dirs
62 $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0444 $(srcdir)/sudo_plugin.h $(DESTDIR)$(includedir)
67 -rm -f $(DESTDIR)$(includedir)/sudo_plugin.h