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

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

we don't want to do the images and scripts things for greenstone, so these are commented out

  • 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
48#SUBDIRS = lib src/text src/images src/scripts
49SUBDIRS = lib src/text
50JAVADIRS = java/org/greenstone/mg jni
51
52.SUFFIXES:
53
54all install uninstall execinstall execuninstall maninstall manuninstall: config.h
55 for subdir in $(SUBDIRS) $(JAVADIRS); do \
56 echo making $@ in $$subdir; \
57 (cd $$subdir && $(MAKE) $(MDEFINES) $@) || exit 1; \
58 done
59
60nojava:
61 for subdir in $(SUBDIRS); do \
62 echo making $@ in $$subdir; \
63 (cd $$subdir && $(MAKE) $(MDEFINES) all) || exit 1; \
64 done
65
66install-nojava:
67 for subdir in $(SUBDIRS); do \
68 echo making $@ in $$subdir; \
69 (cd $$subdir && $(MAKE) $(MDEFINES) install) || exit 1; \
70 done
71
72check: all
73 echo making $@ in ./test directory
74 (cd ./test && $(MAKE) all) || exit 1
75 ./test/testmg `pwd`
76
77mostlyclean: mostlyclean-recursive mostlyclean-local
78
79clean: clean-recursive clean-local
80
81distclean: distclean-recursive distclean-local
82
83maintainer-clean: maintainer-clean-recursive maintainer-clean-local
84 rm -f config.status
85
86mostlyclean-recursive clean-recursive distclean-recursive maintainer-clean-recursive:
87 for subdir in $(SUBDIRS) $(OTHERDIRS); do \
88 target=`echo $@ | sed 's/-recursive//'`; \
89 echo making $$target in $$subdir; \
90 (cd $$subdir && $(MAKE) $$target) || exit 1; \
91 done
92
93mostlyclean-local:
94
95clean-local: mostlyclean-local
96
97distclean-local: clean-local
98 rm -f Makefile stamp-h config.status config.h config.log
99
100maintainer-clean-local: distclean-local
101 @echo "This command is intended only for maintainers to use;"
102 @echo "rebuilding the deleted files may require special tools."
103
104# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
105
106distdir = $(PACKAGE)-$(VERSION)
107
108distname = $(distdir)
109
110DISTFILES = \
111INSTALL.mg INSTALL README README.port COPYING MODIFICATIONS about_mg.html \
112Makefile.in acconfig.h aclocal.m4 configure.in install-sh mkinstalldirs \
113config.guess config.sub \
114config.h.in configure stamp-h.in sysfuncs.h
115
116dist: $(DISTFILES)
117#-----------------------------------------------------------------
118 #create distribution directory
119 -rm -rf $(distdir)
120 mkdir $(distdir)
121#
122 #link in local distribution files
123 ln $(DISTFILES) $(distdir)
124#
125 #link in SampleData
126 mkdir $(distdir)/SampleData
127 (cd SampleData; $(MAKE) "distdir=../$(distdir)/SampleData" dist)
128 # link in davinci stuff
129 mkdir $(distdir)/SampleData/davinci
130 (cd SampleData/davinci; \
131 $(MAKE) "distdir=../../$(distdir)/SampleData/davinci" dist)
132 # link in bible stuff
133 mkdir $(distdir)/SampleData/bible
134 (cd SampleData/bible; \
135 $(MAKE) "distdir=../../$(distdir)/SampleData/bible" dist)
136#
137 #link in tests
138 mkdir $(distdir)/test
139 (cd test; $(MAKE) "distdir=../$(distdir)/test" dist)
140#
141 #link in docs directory
142 mkdir $(distdir)/docs
143 (cd docs; $(MAKE) "distdir=../$(distdir)/docs" dist)
144#
145 #link in lib directory
146 mkdir $(distdir)/lib
147 (cd lib; $(MAKE) "distdir=../$(distdir)/lib" dist)
148#
149 #link in src distribution files
150 mkdir $(distdir)/src
151 for dir in src/text src/images src/scripts; do \
152 echo makeing $@ in $$dir ; \
153 mkdir $(distdir)/$$dir; \
154 (cd $$dir; $(MAKE) "distdir=../../$(distdir)/$$dir" $@) ; \
155 done
156#
157 # archive and compress
158 tar -chf - $(distdir) | gzip -9 > $(distname).tar.gz
159 tar -chf - $(distdir) | compress > $(distname).tar.Z
160#
161 # cleanup
162 rm -rf $(distdir)
163#-----------------------------------------------------------------
164
165# Tell versions [3.59,3.63) of GNU make not to export all variables.
166# Otherwise a system limit (for SysV at least) may be exceeded.
167.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.