# sxid - suid, sgid file and directory checking
#
# Copyright (C) 1998 Ben Collins <bcollins@debian.org>
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2,
# or (at your option) any later version.
#
# This is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with sxid; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

all: source/Makefile
	$(MAKE) all -C source

clean:
	-$(MAKE) clean -C source

distclean: clean
	-rm -f config.log config.status source/Makefile include/config.h \
		config.cache docs/sxid.1 `find . -name core`

install: all
	$(MAKE) install -C source

uninstall: source/Makefile
	$(MAKE) uninstall -C source

source/Makefile: source/Makefile.in include/config.h.in docs/sxid.1.in
	@./configure --prefix=/usr/local --sysconfdir=/etc

tar: distclean
	-cd include && indent *.h
	-cd source && indent *.c
	-rm -f `find . -name \*~`
#	-autoheader
#	-autoconf
	-touch `find .`
	cd ../ && tar zcf sxid-3.1.7.tar.gz sxid-3.1.7
