source: trunk/gsdl/src/mgpp/Makefile.in@ 854

Last change on this file since 854 was 854, checked in by sjboddie, 24 years ago

Rodgers new mg

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.0 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@
30CPP = @CXX@
31CFLAGS = @CFLAGS@ -ansi
32INSTALL = @INSTALL@
33INSTALL_DATA = @INSTALL_DATA@
34INSTALL_PROGRAM = @INSTALL_PROGRAM@
35LDFLAGS = @LDFLAGS@
36LIBS = @LIBS@
37TOUCH = echo timestamp >
38
39bindir = $(exec_prefix)/bin
40infodir = $(prefix)/info
41libexecdir = $(exec_prefix)/libexec
42
43MDEFINES =
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
49SUBDIRS = lib text src/images scripts docs
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
73distclean: distclean-recursive distclean-local
74 rm config.status
75
76maintainer-clean: maintainer-clean-recursive maintainer-clean-local
77 rm config.status
78
79mostlyclean-recursive clean-recursive distclean-recursive \
80maintainer-clean-recursive:
81 for subdir in $(SUBDIRS); do \
82 target=`echo $@ | sed 's/-recursive//'`; \
83 echo making $$target in $$subdir; \
84 (cd $$subdir && $(MAKE) $$target) || exit 1; \
85 done
86
87mostlyclean-local:
88
89clean-local: mostlyclean-local
90
91distclean-local: clean-local
92 rm -f Makefile config.cache config.h config.log stamp-h
93
94maintainer-clean-local: distclean-local
95 @echo "This command is intended only for maintainers to use;"
96 @echo "rebuilding the deleted files may require special tools."
97
98# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
99
100distdir = $(PACKAGE)-$(VERSION)
101
102distname = $(distdir)
103
104DISTFILES = \
105INSTALL.mg INSTALL README README.port COPYING MODIFICATIONS about_mg.html \
106Makefile.in acconfig.h aclocal.m4 configure.in install-sh mkinstalldirs \
107config.guess config.sub \
108config.h.in configure stamp-h.in
109
110dist: $(DISTFILES)
111#-----------------------------------------------------------------
112 #create distribution directory
113 -rm -rf $(distdir)
114 mkdir $(distdir)
115#
116 #link in local distribution files
117 ln $(DISTFILES) $(distdir)
118#
119 #link in SampleData
120 mkdir $(distdir)/SampleData
121 (cd SampleData; $(MAKE) "distdir=../$(distdir)/SampleData" dist)
122 # link in davinci stuff
123 mkdir $(distdir)/SampleData/davinci
124 (cd SampleData/davinci; \
125 $(MAKE) "distdir=../../$(distdir)/SampleData/davinci" dist)
126 # link in bible stuff
127 mkdir $(distdir)/SampleData/bible
128 (cd SampleData/bible; \
129 $(MAKE) "distdir=../../$(distdir)/SampleData/bible" dist)
130#
131 #link in non-src distribution files
132 mkdir $(distdir)/src
133 for dir in test docs lib text scripts; do \
134 echo makeing $@ in $$dir ; \
135 mkdir $(distdir)/$$dir; \
136 (cd $$dir; $(MAKE) "distdir=../../$(distdir)/$$dir" $@) ; \
137 done
138#
139 #link in src distribution files
140 mkdir $(distdir)/src
141 for dir in src/images; do \
142 echo makeing $@ in $$dir ; \
143 mkdir $(distdir)/$$dir; \
144 (cd $$dir; $(MAKE) "distdir=../../$(distdir)/$$dir" $@) ; \
145 done
146#
147 # archive and compress
148 tar -chf - $(distdir) | gzip -9 > $(distname).tar.gz
149 tar -chf - $(distdir) | compress > $(distname).tar.Z
150#
151 # cleanup
152 rm -rf $(distdir)
153#-----------------------------------------------------------------
154
155# For an explanation of the following Makefile rules, see node
156# `Automatic Remaking' in GNU Autoconf documentation.
157Makefile: Makefile.in config.status
158 CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
159config.status: configure
160 ./config.status --recheck
161configure: configure.in aclocal.m4
162 cd $(srcdir) && autoconf
163
164config.h: stamp-h
165stamp-h: config.h.in config.status
166 CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
167config.h.in: stamp-h.in
168stamp-h.in: configure.in aclocal.m4 acconfig.h
169 cd $(srcdir) && autoheader
170 $(TOUCH) $(srcdir)/stamp-h.in
171
172# Tell versions [3.59,3.63) of GNU make not to export all variables.
173# Otherwise a system limit (for SysV at least) may be exceeded.
174.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.