source: main/tags/2.31/gsdl/Makefile.in@ 25382

Last change on this file since 25382 was 1935, checked in by jrm21, 23 years ago

added " srcdir = @srcdir@ " near the top, so that if configure.in is newer
than configure, we don't get a "cd && autoconf" error anymore.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1###########################################################################
2#
3# Makefile -- gsdl
4# A component of the Greenstone digital library software
5# from the New Zealand Digital Library Project at the
6# University of Waikato, New Zealand.
7#
8# Copyright (C) 1999 The New Zealand Digital Library Project
9#
10#
11# This program is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# This program is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with this program; if not, write to the Free Software
23# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24#
25###########################################################################
26srcdir = @srcdir@
27
28PACKAGE = @PACKAGE@
29VERSION = @VERSION@
30
31@SET_MAKE@
32CC = @CC@
33CPP = @CXX@
34CFLAGS = @CFLAGS@
35LIBS = @LIBS@
36MDEFINES =
37TOPSRC = `pwd`
38
39GSDLOS = @gsdlos@
40
41COMPILE = $(CC) -c
42
43SOURCES =
44
45OBJECTS =
46
47ALLFILES = $(OBJECTS)
48
49INSTALLDIRS = src/recpt src/txt2db src/db2txt src/hashfile src/getpw packages/mg src/phind/generate packages
50
51OTHERDIRS = packages packages/mg lib src/mgpp src/colservr src/recpt src/txt2db src/db2txt src/hashfile src/getpw src/phind/generate
52
53all:
54 for odir in $(OTHERDIRS); do \
55 echo making $@ in $$odir; \
56 (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \
57 done
58
59install:
60
61 for idir in $(INSTALLDIRS); do \
62 echo installing $$idir; \
63 (cd $$idir && $(MAKE) install) || exit 1; \
64 done
65
66# added test to check existence of Makefile, as src/recpt is in
67# both INSTALLDIRS and OTHERDIRS - can't make distclean twice!
68distclean:
69 rm -f Makefile config.cache config.h config.log stamp-h config.status
70 for subdir in $(INSTALLDIRS) $(OTHERDIRS); do \
71 echo cleaning $@ in $$subdir; \
72 (cd $$subdir && if test -e Makefile; then $(MAKE) distclean;fi) || exit 1; \
73 done
74
75clean:
76 for subdir in $(INSTALLDIRS) $(OTHERDIRS); do \
77 echo cleaning $@ in $$subdir; \
78 (cd $$subdir && $(MAKE) clean) || exit 1; \
79 done
80
81# For an explanation of the following Makefile rules, see node
82# `Automatic Remaking' in GNU Autoconf documentation.
83Makefile: Makefile.in config.status
84 CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
85config.status: configure
86 ./config.status --recheck
87configure: configure.in aclocal.m4
88 cd $(srcdir) && autoconf
89
90config.h: stamp-h
91stamp-h: config.h.in config.status
92 CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
93config.h.in: stamp-h.in
94stamp-h.in: configure.in aclocal.m4 acconfig.h
95 cd $(srcdir) && autoheader
96 $(TOUCH) $(srcdir)/stamp-h.in
97
98
99
Note: See TracBrowser for help on using the repository browser.