File: Makefile

package info (click to toggle)
greg 1.4-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 884 kB
  • ctags: 241
  • sloc: sh: 7,635; ansic: 273; lisp: 200; makefile: 165
file content (83 lines) | stat: -rw-r--r-- 2,401 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
83

#
#  Main Makefile for Greg (GNUstep REGrestation testing framework in Guile)
#  
#  Copyright (C) 1998 Free Software Foundation, Inc.
#
#  Written by:	Richard Frith-Macdonald <rfm@gnu.org>
#
#  This file is part of Greg (part of the GNUstep project)
#
#  This library is free software; you can redistribute it and/or
#  modify it under the terms of the GNU Lesser General Public
#  License as published by the Free Software Foundation; either
#  version 2.1 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
#  Lesser General Public License for more details.
#  
#  You should have received a copy of the GNU Lesser General Public
#  License along with this library; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#


#
#  Greg MUST be installed before use so that Guile can load the modules from
#  it's standard locations.
#
all:	library documentation
	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 documentation
	(cd Library; $(MAKE) install); \
	(cd Documentation; $(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; \
	)