1 | # Main Makefile for MGPP
|
---|
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 |
|
---|
18 | PACKAGE = @PACKAGE@
|
---|
19 | VERSION = @VERSION@
|
---|
20 |
|
---|
21 | @SET_MAKE@
|
---|
22 | SHELL = /bin/sh
|
---|
23 | VPATH = @srcdir@
|
---|
24 | exec_prefix = @exec_prefix@
|
---|
25 | prefix = @prefix@
|
---|
26 | srcdir = @srcdir@
|
---|
27 |
|
---|
28 |
|
---|
29 | CC = @CC@
|
---|
30 | CPP = @CXX@
|
---|
31 | CFLAGS = @CFLAGS@ -ansi
|
---|
32 | INSTALL = @INSTALL@
|
---|
33 | INSTALL_DATA = @INSTALL_DATA@
|
---|
34 | INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
---|
35 | LDFLAGS = @LDFLAGS@
|
---|
36 | LIBS = @LIBS@
|
---|
37 | TOUCH = echo timestamp >
|
---|
38 |
|
---|
39 | bindir = $(exec_prefix)/bin
|
---|
40 | infodir = $(prefix)/info
|
---|
41 | libexecdir = $(exec_prefix)/libexec
|
---|
42 |
|
---|
43 | MDEFINES =
|
---|
44 | #CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
|
---|
45 | #prefix='$(prefix)' exec_prefix='$(exec_prefix)' \
|
---|
46 | #bindir='$(bindir)' libexecdir='$(libexecdir)' \
|
---|
47 | #infodir='$(infodir)' infodir='$(infodir)' libexecdir='$(libexecdir)'
|
---|
48 |
|
---|
49 | SUBDIRS = lib text
|
---|
50 | JAVADIRS = java/org/greenstone/mgpp
|
---|
51 | JNIDIRS = jni
|
---|
52 |
|
---|
53 | .SUFFIXES:
|
---|
54 |
|
---|
55 | all install uninstall execinstall execuninstall maninstall manuninstall:
|
---|
56 | #config.h
|
---|
57 | for subdir in $(SUBDIRS) $(JAVADIRS) $(JNIDIRS); do \
|
---|
58 | echo making $@ in $$subdir; \
|
---|
59 | (cd $$subdir && $(MAKE) $(MDEFINES) $@) || exit 1; \
|
---|
60 | done
|
---|
61 |
|
---|
62 | nojava:
|
---|
63 | for subdir in $(SUBDIRS); do \
|
---|
64 | echo making $@ in $$subdir; \
|
---|
65 | (cd $$subdir && $(MAKE) $(MDEFINES) all) || exit 1; \
|
---|
66 | done
|
---|
67 |
|
---|
68 | install-nojava:
|
---|
69 | for subdir in $(SUBDIRS); do \
|
---|
70 | echo making $@ in $$subdir; \
|
---|
71 | (cd $$subdir && $(MAKE) $(MDEFINES) install) || exit 1; \
|
---|
72 | done
|
---|
73 |
|
---|
74 | javaonly:
|
---|
75 | for subdir in $(JAVADIRS); do \
|
---|
76 | echo making $@ in $$subdir; \
|
---|
77 | (cd $$subdir && $(MAKE) $(MDEFINES) all) || exit 1; \
|
---|
78 | done
|
---|
79 |
|
---|
80 | install-javaonly:
|
---|
81 | for subdir in $(JAVADIRS); do \
|
---|
82 | echo making $@ in $$subdir; \
|
---|
83 | (cd $$subdir && $(MAKE) $(MDEFINES) install) || exit 1; \
|
---|
84 | done
|
---|
85 |
|
---|
86 |
|
---|
87 | mostlyclean: mostlyclean-recursive mostlyclean-local
|
---|
88 |
|
---|
89 | clean: clean-recursive clean-local
|
---|
90 |
|
---|
91 | distclean: distclean-recursive distclean-local
|
---|
92 | rm config.status
|
---|
93 |
|
---|
94 | maintainer-clean: maintainer-clean-recursive maintainer-clean-local
|
---|
95 | rm config.status
|
---|
96 |
|
---|
97 | mostlyclean-recursive clean-recursive distclean-recursive \
|
---|
98 | maintainer-clean-recursive:
|
---|
99 | for subdir in $(SUBDIRS) $(JAVADIRS) $(JNIDIRS); do \
|
---|
100 | target=`echo $@ | sed 's/-recursive//'`; \
|
---|
101 | echo making $$target in $$subdir; \
|
---|
102 | (cd $$subdir && $(MAKE) $$target) || exit 1; \
|
---|
103 | done
|
---|
104 |
|
---|
105 | mostlyclean-local:
|
---|
106 |
|
---|
107 | clean-local: mostlyclean-local
|
---|
108 |
|
---|
109 | distclean-local: clean-local
|
---|
110 | rm -f Makefile config.cache config.h config.log stamp-h
|
---|
111 |
|
---|
112 | maintainer-clean-local: distclean-local
|
---|
113 | @echo "This command is intended only for maintainers to use;"
|
---|
114 | @echo "rebuilding the deleted files may require special tools."
|
---|
115 |
|
---|
116 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
117 |
|
---|
118 | distdir = $(PACKAGE)-$(VERSION)
|
---|
119 |
|
---|
120 | distname = $(distdir)
|
---|
121 |
|
---|
122 | DISTFILES = \
|
---|
123 | INSTALL.mg INSTALL README README.port COPYING MODIFICATIONS about_mg.html \
|
---|
124 | Makefile.in acconfig.h aclocal.m4 configure.in install-sh mkinstalldirs \
|
---|
125 | config.guess config.sub \
|
---|
126 | config.h.in configure stamp-h.in
|
---|
127 |
|
---|
128 | #-----------------------------------------------------------------
|
---|
129 |
|
---|
130 | # Tell versions [3.59,3.63) of GNU make not to export all variables.
|
---|
131 | # Otherwise a system limit (for SysV at least) may be exceeded.
|
---|
132 | .NOEXPORT:
|
---|
133 |
|
---|