1 | ###########################################################################
|
---|
2 | #
|
---|
3 | # Makefile.in -- Makefile for the MG system
|
---|
4 | # Copyright (C) 1994 Neil Sharman
|
---|
5 | #
|
---|
6 | # This program is free software; you can redistribute it and/or modify
|
---|
7 | # it under the terms of the GNU General Public License as published by
|
---|
8 | # the Free Software Foundation; either version 2 of the License, or
|
---|
9 | # (at your option) any later version.
|
---|
10 | #
|
---|
11 | # This program is distributed in the hope that it will be useful,
|
---|
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
14 | # GNU General Public License for more details.
|
---|
15 | #
|
---|
16 | # You should have received a copy of the GNU General Public License
|
---|
17 | # along with this program; if not, write to the Free Software
|
---|
18 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
19 | #
|
---|
20 | # @(#)Makefile.in 1.10 22 Mar 1994
|
---|
21 | #
|
---|
22 | ###########################################################################
|
---|
23 |
|
---|
24 | PACKAGE = @PACKAGE@
|
---|
25 | VERSION = @VERSION@
|
---|
26 |
|
---|
27 | SHELL = /bin/sh
|
---|
28 | VPATH = @srcdir@
|
---|
29 | exec_prefix = @exec_prefix@
|
---|
30 | prefix = @prefix@
|
---|
31 | bindir = @bindir@
|
---|
32 | srcdir = @srcdir@
|
---|
33 | subdir = src/scripts
|
---|
34 | top_srcdir = @top_srcdir@
|
---|
35 | transform = @program_transform_name@
|
---|
36 |
|
---|
37 | DEFS = @DEFS@
|
---|
38 | INSTALL = @INSTALL@
|
---|
39 | INSTALL_DATA = @INSTALL_DATA@
|
---|
40 | INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
---|
41 | TOUCH = echo timestamp >
|
---|
42 |
|
---|
43 | datadir = $(prefix)/share
|
---|
44 | libexecdir = $(exec_prefix)/libexec
|
---|
45 | localedir = $(datadir)/locale
|
---|
46 | mandir = $(prefix)/man/man1
|
---|
47 |
|
---|
48 | SHFILES = mgbuild.sh mgbuild_4.sh mg_get.sh xmg.sh mg_get_merge.sh mgmerge.sh
|
---|
49 |
|
---|
50 | MISC = Makefile.in
|
---|
51 |
|
---|
52 | ALLFILES = $(SHFILES) $(MISC) $(MAN)
|
---|
53 |
|
---|
54 | DISTFILES = $(ALLFILES)
|
---|
55 |
|
---|
56 | EXEC = mgbuild mg_get xmg mg_get_merge mgmerge mgbuild_4
|
---|
57 |
|
---|
58 | MAN = mgbuild.1 mgbuild_4.1 mg_get.1 xmg.1 mg_get_merge.1 mgmerge.1
|
---|
59 |
|
---|
60 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
61 |
|
---|
62 |
|
---|
63 | all: $(EXEC)
|
---|
64 |
|
---|
65 |
|
---|
66 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
67 |
|
---|
68 | mgbuild : mgbuild.sh
|
---|
69 | @rm -f $@
|
---|
70 | cat mgbuild.sh >$@
|
---|
71 | chmod +x $@
|
---|
72 |
|
---|
73 | mgbuild_4 : mgbuild_4.sh
|
---|
74 | @rm -f $@
|
---|
75 | cat mgbuild_4.sh >$@
|
---|
76 | chmod +x $@
|
---|
77 |
|
---|
78 | mg_get : mg_get.sh
|
---|
79 | @rm -f $@
|
---|
80 | cat mg_get.sh >$@
|
---|
81 | chmod +x $@
|
---|
82 |
|
---|
83 | mgmerge : mgmerge.sh
|
---|
84 | @rm -f $@
|
---|
85 | cat mgmerge.sh >$@
|
---|
86 | chmod +x $@
|
---|
87 |
|
---|
88 | mg_get_merge : mg_get_merge.sh
|
---|
89 | @rm -f $@
|
---|
90 | cat mg_get_merge.sh >$@
|
---|
91 | chmod +x $@
|
---|
92 |
|
---|
93 | xmg : xmg.sh
|
---|
94 | @rm -f $@
|
---|
95 | cat xmg.sh >$@
|
---|
96 | chmod +x $@
|
---|
97 |
|
---|
98 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
99 |
|
---|
100 |
|
---|
101 | install: execinstall #maninstall
|
---|
102 | uninstall: execuninstall manuninstall
|
---|
103 |
|
---|
104 | execinstall: $(EXEC)
|
---|
105 | for name in $(EXEC); do \
|
---|
106 | $(INSTALL_PROGRAM) $$name \
|
---|
107 | $(bindir)/`echo $$name | sed '$(transform)'`; \
|
---|
108 | done
|
---|
109 |
|
---|
110 | execuninstall:
|
---|
111 | for name in $(EXEC); do \
|
---|
112 | rm -f $(bindir)/`echo $$name | sed '$(transform)'`; \
|
---|
113 | done
|
---|
114 |
|
---|
115 | maninstall: $(MAN)
|
---|
116 | $(top_srcdir)/mkinstalldirs $(mandir); \
|
---|
117 | for f in $(MAN); do \
|
---|
118 | $(INSTALL_DATA) $$f $(mandir)/$$f ;\
|
---|
119 | done
|
---|
120 |
|
---|
121 | manuninstall: $(MAN)
|
---|
122 | for f in $(MAN); do \
|
---|
123 | rm -f $(mandir)/$$f ;\
|
---|
124 | done
|
---|
125 |
|
---|
126 | mostlyclean:
|
---|
127 |
|
---|
128 | clean: mostlyclean
|
---|
129 | rm -f $(EXEC)
|
---|
130 |
|
---|
131 | distclean: clean
|
---|
132 | rm -f ansi2knr
|
---|
133 | rm -f Makefile
|
---|
134 |
|
---|
135 | maintainer-clean: distclean
|
---|
136 | @echo "This command is intended only for maintainers to use;"
|
---|
137 | @echo "rebuilding the deleted files may require special tools."
|
---|
138 |
|
---|
139 | dist: $(DISTFILES)
|
---|
140 | for file in $(DISTFILES); do \
|
---|
141 | ln $(srcdir)/$$file $(distdir) 2> /dev/null \
|
---|
142 | || cp -p $(srcdir)/$$file $(distdir); \
|
---|
143 | done
|
---|
144 |
|
---|
145 | # screws up distclean (jrm21)
|
---|
146 | #Makefile: Makefile.in ../../../../config.status
|
---|
147 | # cd ../../../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
|
---|
148 |
|
---|
149 | # Tell versions [3.59,3.63) of GNU make not to export all variables.
|
---|
150 | # Otherwise a system limit (for SysV at least) may be exceeded.
|
---|
151 | .NOEXPORT:
|
---|