source: trunk/indexers/mg/Makefile.in@ 13737

Last change on this file since 13737 was 13737, checked in by kjdon, 17 years ago

OTHERDIRS should be JAVADIRS

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 4.8 KB
Line 
1# Main Makefile for MG
2# Copyright (C) 1994, 1995 Free Software Foundation, Inc.
3
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 2, or (at your option)
7# any later version.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18PACKAGE = @PACKAGE@
19VERSION = @VERSION@
20
21@SET_MAKE@
22SHELL = /bin/sh
23VPATH = @srcdir@
24exec_prefix = @exec_prefix@
25prefix = @prefix@
26srcdir = @srcdir@
27
28
29CC = @CC@
30CFLAGS = @CFLAGS@ -fpic
31INSTALL = @INSTALL@
32INSTALL_DATA = @INSTALL_DATA@
33INSTALL_PROGRAM = @INSTALL_PROGRAM@
34LDFLAGS = @LDFLAGS@
35LIBS = @LIBS@
36TOUCH = echo timestamp >
37
38bindir = $(exec_prefix)/bin
39infodir = $(prefix)/info
40libexecdir = $(exec_prefix)/libexec
41
42MDEFINES =
43#CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
44#prefix='$(prefix)' exec_prefix='$(exec_prefix)' \
45#bindir='$(bindir)' libexecdir='$(libexecdir)' \
46#infodir='$(infodir)' infodir='$(infodir)' libexecdir='$(libexecdir)'
47
48SUBDIRS = lib src/text src/images src/scripts
49JAVADIRS = java/org/greenstone/mg jni
50
51.SUFFIXES:
52
53all install uninstall execinstall execuninstall maninstall manuninstall: config.h
54 for subdir in $(SUBDIRS) $(JAVADIRS); do \
55 echo making $@ in $$subdir; \
56 (cd $$subdir && $(MAKE) $(MDEFINES) $@) || exit 1; \
57 done
58
59nojava:
60 for subdir in $(SUBDIRS); do \
61 echo making $@ in $$subdir; \
62 (cd $$subdir && $(MAKE) $(MDEFINES) all) || exit 1; \
63 done
64
65install-nojava:
66 for subdir in $(SUBDIRS); do \
67 echo making $@ in $$subdir; \
68 (cd $$subdir && $(MAKE) $(MDEFINES) install) || exit 1; \
69 done
70
71check: all
72 echo making $@ in ./test directory
73 (cd ./test && $(MAKE) all) || exit 1
74 ./test/testmg `pwd`
75
76mostlyclean: mostlyclean-recursive mostlyclean-local
77
78clean: clean-recursive clean-local
79
80distclean: distclean-recursive distclean-local
81
82maintainer-clean: maintainer-clean-recursive maintainer-clean-local
83 rm -f config.status
84
85mostlyclean-recursive clean-recursive distclean-recursive maintainer-clean-recursive:
86 for subdir in $(SUBDIRS) $(OTHERDIRS); do \
87 target=`echo $@ | sed 's/-recursive//'`; \
88 echo making $$target in $$subdir; \
89 (cd $$subdir && $(MAKE) $$target) || exit 1; \
90 done
91
92mostlyclean-local:
93
94clean-local: mostlyclean-local
95
96distclean-local: clean-local
97 rm -f Makefile stamp-h config.status config.h config.log
98
99maintainer-clean-local: distclean-local
100 @echo "This command is intended only for maintainers to use;"
101 @echo "rebuilding the deleted files may require special tools."
102
103# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
104
105distdir = $(PACKAGE)-$(VERSION)
106
107distname = $(distdir)
108
109DISTFILES = \
110INSTALL.mg INSTALL README README.port COPYING MODIFICATIONS about_mg.html \
111Makefile.in acconfig.h aclocal.m4 configure.in install-sh mkinstalldirs \
112config.guess config.sub \
113config.h.in configure stamp-h.in sysfuncs.h
114
115dist: $(DISTFILES)
116#-----------------------------------------------------------------
117 #create distribution directory
118 -rm -rf $(distdir)
119 mkdir $(distdir)
120#
121 #link in local distribution files
122 ln $(DISTFILES) $(distdir)
123#
124 #link in SampleData
125 mkdir $(distdir)/SampleData
126 (cd SampleData; $(MAKE) "distdir=../$(distdir)/SampleData" dist)
127 # link in davinci stuff
128 mkdir $(distdir)/SampleData/davinci
129 (cd SampleData/davinci; \
130 $(MAKE) "distdir=../../$(distdir)/SampleData/davinci" dist)
131 # link in bible stuff
132 mkdir $(distdir)/SampleData/bible
133 (cd SampleData/bible; \
134 $(MAKE) "distdir=../../$(distdir)/SampleData/bible" dist)
135#
136 #link in tests
137 mkdir $(distdir)/test
138 (cd test; $(MAKE) "distdir=../$(distdir)/test" dist)
139#
140 #link in docs directory
141 mkdir $(distdir)/docs
142 (cd docs; $(MAKE) "distdir=../$(distdir)/docs" dist)
143#
144 #link in lib directory
145 mkdir $(distdir)/lib
146 (cd lib; $(MAKE) "distdir=../$(distdir)/lib" dist)
147#
148 #link in src distribution files
149 mkdir $(distdir)/src
150 for dir in src/text src/images src/scripts; do \
151 echo makeing $@ in $$dir ; \
152 mkdir $(distdir)/$$dir; \
153 (cd $$dir; $(MAKE) "distdir=../../$(distdir)/$$dir" $@) ; \
154 done
155#
156 # archive and compress
157 tar -chf - $(distdir) | gzip -9 > $(distname).tar.gz
158 tar -chf - $(distdir) | compress > $(distname).tar.Z
159#
160 # cleanup
161 rm -rf $(distdir)
162#-----------------------------------------------------------------
163
164# Tell versions [3.59,3.63) of GNU make not to export all variables.
165# Otherwise a system limit (for SysV at least) may be exceeded.
166.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.