source: trunk/gsdl/packages/mg/Makefile.in@ 439

Last change on this file since 439 was 439, checked in by sjboddie, 25 years ago

renamed mg-1.3d directory mg

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