2010-02-20 09:41:49 -05:00
|
|
|
#
|
|
|
|
# Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com>
|
|
|
|
#
|
|
|
|
# Permission to use, copy, modify, and distribute this software for any
|
|
|
|
# purpose with or without fee is hereby granted, provided that the above
|
|
|
|
# copyright notice and this permission notice appear in all copies.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
|
2010-04-23 23:15:31 -04:00
|
|
|
srcdir = @srcdir@
|
|
|
|
devdir = @devdir@
|
|
|
|
top_builddir = @top_builddir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
|
2010-07-07 11:09:41 -04:00
|
|
|
SUBDIRS = compat common src plugins/sudoers include doc
|
|
|
|
|
|
|
|
SAMPLES = plugins/sample plugins/sample_group
|
2010-02-20 09:41:49 -05:00
|
|
|
|
2010-04-23 23:15:31 -04:00
|
|
|
VERSION = @PACKAGE_VERSION@
|
|
|
|
|
2010-05-21 17:59:47 -04:00
|
|
|
LIBTOOL_DEPS = @LIBTOOL_DEPS@
|
|
|
|
|
2010-05-21 21:29:44 -04:00
|
|
|
SHELL = @SHELL@
|
2010-05-21 17:59:47 -04:00
|
|
|
|
2010-06-29 13:05:27 -04:00
|
|
|
all: config.status
|
2010-07-07 11:09:41 -04:00
|
|
|
for d in $(SUBDIRS) $(SAMPLES); do (cd $$d && $(MAKE) $@) || break; done
|
2010-06-29 13:05:27 -04:00
|
|
|
|
2010-07-07 11:42:36 -04:00
|
|
|
install install-dirs install-binaries install-includes install-man install-plugin uninstall: config.status
|
2010-05-04 15:13:40 -04:00
|
|
|
for d in $(SUBDIRS); do (cd $$d && $(MAKE) $@) || break; done
|
2010-02-21 16:12:01 -05:00
|
|
|
|
2010-05-21 17:59:47 -04:00
|
|
|
autoconf:
|
|
|
|
autoconf -I m4
|
|
|
|
|
2010-02-27 12:37:49 -05:00
|
|
|
ChangeLog:
|
|
|
|
hg log --style=changelog -b default > $@
|
|
|
|
|
2010-07-07 11:09:41 -04:00
|
|
|
check:
|
|
|
|
@echo nothing to check
|
|
|
|
|
2010-02-21 16:12:01 -05:00
|
|
|
config.status:
|
2010-02-20 09:41:49 -05:00
|
|
|
@if [ ! -s config.status ]; then \
|
|
|
|
echo "Please run configure first"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
2010-02-21 16:12:01 -05:00
|
|
|
|
2010-05-21 17:59:47 -04:00
|
|
|
libtool: $(LIBTOOL_DEPS)
|
2010-05-21 18:41:18 -04:00
|
|
|
$(SHELL) ./config.status --recheck
|
2010-05-21 17:59:47 -04:00
|
|
|
|
2010-04-23 23:15:31 -04:00
|
|
|
dist: ChangeLog $(srcdir)/MANIFEST
|
|
|
|
pax -w -x ustar -s '/^/sudo-$(VERSION)\//' -f ../sudo-$(VERSION).tar \
|
|
|
|
`sed 's/[ ].*//' $(srcdir)/MANIFEST`
|
|
|
|
gzip -9f ../sudo-$(VERSION).tar
|
|
|
|
ls -l ../sudo-$(VERSION).tar.gz
|
|
|
|
|
2010-02-21 16:12:01 -05:00
|
|
|
clean: config.status
|
2010-02-20 09:41:49 -05:00
|
|
|
for d in $(SUBDIRS); do (cd $$d && $(MAKE) $@); done
|
2010-02-20 09:53:05 -05:00
|
|
|
|
2010-02-21 16:12:01 -05:00
|
|
|
mostlyclean: clean
|
|
|
|
|
|
|
|
distclean: config.status
|
2010-05-26 16:10:24 -04:00
|
|
|
for d in $(SUBDIRS); do (cd $$d && $(MAKE) $@); done
|
2010-04-23 22:57:03 -04:00
|
|
|
-rm -rf Makefile pathnames.h config.h config.status config.cache \
|
2010-04-23 22:55:34 -04:00
|
|
|
config.log libtool stamp-* autom4te.cache ChangeLog
|
2010-02-20 09:53:05 -05:00
|
|
|
|
|
|
|
cleandir: distclean
|
|
|
|
|
|
|
|
clobber: distclean
|
|
|
|
|
|
|
|
realclean: distclean
|