File: Makefile

package info (click to toggle)
gstep-guile 0.5.14.990922-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,448 kB
  • ctags: 218
  • sloc: sh: 4,581; objc: 2,868; lisp: 654; makefile: 398; ansic: 277
file content (82 lines) | stat: -rw-r--r-- 2,318 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82

#
#  Main Makefile for Greg (GNUstep REGrestation testing framework in Guile)
#  
#  Copyright (C) 1998 Free Software Foundation, Inc.
#
#  Written by:	Richard Frith-Macdonald <richard@brainstorm.co.uk>
#
#  This file is part of the GNUstep Base Library.
#
#  This library is free software; you can redistribute it and/or
#  modify it under the terms of the GNU Library General Public
#  License as published by the Free Software Foundation; either
#  version 2 of the License, or (at your option) any later version.
#
#  This library 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
#  Library General Public License for more details.
#
#  You should have received a copy of the GNU Library General Public
#  License along with this library; if not, write to the Free
#  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#


#
#  Greg MUST be installed before use so that Guile can load the modules from
#  it's standard locations.
#
all:	library
	echo "You must now install Greg in order to use it"

#
#  The 'configure' program MUST be run before building.
#
library:	config.status
	(cd Library; $(MAKE));

config.status:	configure
	echo "You must run configure before building Greg"
	exit 1

install: library
	(cd Library; $(MAKE) install); \

test:
	(cd Test; $(MAKE) check); \

documentation:
	(cd Documentation; $(MAKE))

clean:
	(cd Library; $(MAKE) clean); \
	(cd Test; $(MAKE) clean); \
	(cd Documentation; $(MAKE) clean)

distclean:
	rm -f config.cache config.log config.status config.mak; \
	rm -f Documentation/gregdoc; \
	(cd Library; $(MAKE) distclean); \
	(cd Test; $(MAKE) distclean); \
	(cd Documentation; $(MAKE) distclean)

distrib:
	( \
	autoconf; \
	./configure; \
	(cd Documentation; $(MAKE)); \
	rm -f config.cache config.log config.status config.mak; \
	(cd Library; $(MAKE) distclean); \
	(cd Test; $(MAKE) distclean); \
	(cd Documentation; $(MAKE) distclean); \
	. GREG-VERSION; \
	mkdir /tmp/greg-$$VERSION; \
	tar -cf - . | (cd /tmp/greg-$$VERSION; tar -xf -); \
	cd /tmp; \
	rm -rf greg-$$VERSION/CVS greg-$$VERSION/*/CVS; \
	tar -cf greg-$$VERSION.tar greg-$$VERSION; \
	gzip greg-$$VERSION.tar; \
	rm -rf /tmp/greg-$$VERSION; \
	)