]> err.no Git - sope/blob - libFoundation/GNUmakefile.alone
extended iCalPerson part-stat field
[sope] / libFoundation / GNUmakefile.alone
1 # GNUmakefile
2 #
3 # Copyright (C) 1995, 1996 Ovidiu Predescu and Mircea Oancea.
4 # All rights reserved.
5 #
6 # Author: Ovidiu Predescu <ovidiu@bx.logicnet.ro>
7 #
8 # This file is part of libFoundation.
9 #
10 # Permission to use, copy, modify, and distribute this software and its
11 # documentation for any purpose and without fee is hereby granted, provided
12 # that the above copyright notice appear in all copies and that both that
13 # copyright notice and this permission notice appear in supporting
14 # documentation.
15 #
16 # We disclaim all warranties with regard to this software, including all
17 # implied warranties of merchantability and fitness, in no event shall
18 # we be liable for any special, indirect or consequential damages or any
19 # damages whatsoever resulting from loss of use, data or profits, whether in
20 # an action of contract, negligence or other tortious action, arising out of
21 # or in connection with the use or performance of this software.
22
23 TOP     = .
24 OBJDIR  = obj
25
26 include $(TOP)/config.mak
27
28 DIRS_TO_MAKE = Foundation Resources examples
29
30 all clean distclean realclean install uninstall check check-all::
31         @(dir=`(cd $(TOP); pwd)`; newdir=`(pwd | sed "s%$$dir/%%")`;\
32         if test "$$newdir" = "$$dir"; then dir=; else dir=$$newdir/; fi; \
33         for f in $(DIRS_TO_MAKE); do \
34             echo Making $@ in $${dir}$$f...;\
35             (cd $$f; $(MAKE) $@ OBJDIR=$(OBJDIR)); \
36         done)
37
38 clean::
39         rm -f lib/libFoundation.*
40
41 distclean::
42         rm -f config.cache config.log config.status config.h config.mak \
43             GNUmakefile lib/libFoundation.*
44
45 realclean:: distclean
46
47 shared static:
48         @(echo Making $@ in Foundation...; \
49         (cd Foundation; $(MAKE) $@ OBJDIR=$(OBJDIR)))
50
51 $(TOP)/config.mak:
52         touch $@