]> granicus.if.org Git - apache/commitdiff
Make it possible to build suexec from the top-level Makefiles, and make it
authorRyan Bloom <rbb@apache.org>
Wed, 27 Dec 2000 02:34:16 +0000 (02:34 +0000)
committerRyan Bloom <rbb@apache.org>
Wed, 27 Dec 2000 02:34:16 +0000 (02:34 +0000)
install when using make install

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87531 13f79535-47bb-0310-9956-ffa450edef68

Makefile.in

index d646f4361084403690239a1a1ef429374b7567fa..124ca476bc31c98d7d1743117441ea30217dde47 100644 (file)
@@ -1,7 +1,7 @@
 
 SUBDIRS = srclib modules os server support
 
-PROGRAM_NAME         = $(progname)
+PROGRAM_NAME         = $(progname) 
 PROGRAM_SOURCES      = modules.c
 PROGRAM_LDADD        = $(EXTRA_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS)
 PROGRAM_DEPENDENCIES = \
@@ -15,7 +15,7 @@ PROGRAMS        = $(PROGRAM_NAME)
 targets         = $(PROGRAMS) 
 phony_targets   = $(srcdir)/buildmark.c
 install_targets = install-conf install-htdocs install-icons install-other \
-       install-cgi install-include install-support
+       install-cgi install-include install-support install-suexec
 DISTCLEANFILES  = include/config_auto.h modules.c aclocal.m4 buildmk.stamp \
        configure generated_lists include/ap_config_auto.h \
        include/ap_config_auto.h.in include/ap_config_path.h install-sh
@@ -108,3 +108,12 @@ install-include:
        @cp -p $(srcdir)/srclib/apr/include/*.h $(includedir)
        @cp -p $(srcdir)/srclib/apr-util/include/*.h $(includedir)
        @chmod 644 $(includedir)/*.h
+
+install-suexec:
+       @if test -f $(builddir)/support/suexec; then \
+           $(MKINSTALLDIRS) -p $(bindir)/sbin; \
+           cp -p $(srcdir)/support/suexec $(bindir)/sbin; \
+       fi
+
+suexec:
+       cd support && make suexec