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

Last change on this file since 7442 was 3757, checked in by mdewsnip, 21 years ago

Changed build order so JNI (C side) code is compiled after the Java side.

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