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