1 # FreeS/WAN master makefile
2 # Copyright (C) 1998-2002 Henry Spencer.
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published by the
6 # Free Software Foundation; either version 2 of the License, or (at your
7 # option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # RCSID $Id: Makefile,v 1.4 2004/11/14 21:50:59 as Exp $
17 FREESWANSRCDIR
=$(shell pwd
)
22 # directories visited by all recursion
23 SUBDIRS
=lib programs linux
25 # declaration for make's benefit
26 .PHONY
: programs
install clean distclean \
27 uninstall install_file_list
33 programs
install install_file_list
clean::
34 @for d in
$(SUBDIRS
) ; \
36 (cd
$$d && $(MAKE
) FREESWANSRCDIR
=..
$@
) || exit
1; \
39 # uninstall, as much as possible
41 $(MAKE
) --no-print-directory install_file_list | egrep
-v
'(/ipsec.conf$$|/ipsec.d/)' | xargs
rm -f