| 1 |
/* |
| 2 |
* Jmakefile for metaconfig |
| 3 |
*/ |
| 4 |
|
| 5 |
;# $Id$ |
| 6 |
;# |
| 7 |
;# Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi |
| 8 |
;# |
| 9 |
;# You may redistribute only under the terms of the Artistic Licence, |
| 10 |
;# as specified in the README file that comes with the distribution. |
| 11 |
;# You may reuse parts of this distribution only within the terms of |
| 12 |
;# that same Artistic Licence; a copy of which may be found at the root |
| 13 |
;# of the source tree for dist 4.0. |
| 14 |
;# |
| 15 |
;# $Log: Jmakefile,v $ |
| 16 |
;# Revision 3.0.1.4 1995/07/25 13:23:09 ram |
| 17 |
;# patch56: installs the GNU configure-like front-end to Configure |
| 18 |
;# |
| 19 |
;# Revision 3.0.1.3 1994/01/24 13:42:29 ram |
| 20 |
;# patch16: added dependency generation stage |
| 21 |
;# |
| 22 |
;# Revision 3.0.1.2 1993/11/02 10:40:01 ram |
| 23 |
;# patch14: now invokes perload explicitly via perl executable |
| 24 |
;# |
| 25 |
;# Revision 3.0.1.1 1993/08/25 08:46:44 ram |
| 26 |
;# patch6: split unit installation to avoid shell command line overflow |
| 27 |
;# |
| 28 |
;# Revision 3.0 1993/08/18 12:04:40 ram |
| 29 |
;# Baseline for dist 3.0 netwide release. |
| 30 |
;# |
| 31 |
|
| 32 |
SetSubdirs(man) |
| 33 |
AllTarget(Glossary) |
| 34 |
|
| 35 |
.FORCE: |
| 36 |
|
| 37 |
Glossary: .FORCE |
| 38 |
chmod +x makegloss |
| 39 |
./makegloss |
| 40 |
|
| 41 |
SimpleShellScriptTarget(makegloss) |
| 42 |
|
| 43 |
MakeInstallDirectories($(PRIVLIB) $(PRIVLIB)/U) |
| 44 |
InstallNonExec(Glossary,$(PRIVLIB)) |
| 45 |
InstallScript(makegloss,$(PRIVLIB)) |
| 46 |
InstallScript(configure,$(PRIVLIB)) |
| 47 |
|
| 48 |
/* Split install list to avoid make overflow */ |
| 49 |
InstallMultipleFlags(U/[a-d]*.U,$(PRIVLIB)/U,-m 444) |
| 50 |
InstallMultipleFlags(U/[A-Ze-z]*.U,$(PRIVLIB)/U,-m 444) |
| 51 |
|
| 52 |
/* |
| 53 |
* Build up dataloading versions of metalint, metaconfig and metaxref. |
| 54 |
*/ |
| 55 |
|
| 56 |
#define SimpleDataloadTarget(file,datafile) @!\ |
| 57 |
++BIN datafile @!\ |
| 58 |
AllTarget(datafile file) @!\ |
| 59 |
SimpleShellScriptTarget(file) @!\ |
| 60 |
datafile: file @@\ |
| 61 |
perl $(TOP)/bin/perload -o file > $@ @@\ |
| 62 |
chmod +rx $@ @!\ |
| 63 |
@!\ |
| 64 |
InstallScript(datafile,$(SCRIPTDIR)) |
| 65 |
|
| 66 |
SimpleDataloadTarget(mconfig,metaconfig) |
| 67 |
SimpleDataloadTarget(mlint,metalint) |
| 68 |
SimpleDataloadTarget(mxref,metaxref) |
| 69 |
|
| 70 |
BINFILES = \ |
| 71 |
|expand f!$(BIN)! |
| 72 |
!f:^meta=m \ |
| 73 |
-expand \\ |
| 74 |
|
| 75 |
BINSH = \ |
| 76 |
|expand f!$(BINFILES)! |
| 77 |
!f.SH \ |
| 78 |
-expand \\ |
| 79 |
|
| 80 |
depend:: local_depend |
| 81 |
local_depend:: |
| 82 |
($(SED) '/^# DO NOT DELETE/q' Makefile && \ |
| 83 |
grep '^\$$grep' $(BINSH) | \ |
| 84 |
$(SED) -e "s/^.*' \([^ ]*\) >>\([^ ]*\)/\2: \1/" \ |
| 85 |
) > Makefile.new |
| 86 |
cp Makefile Makefile.bak |
| 87 |
cp Makefile.new Makefile |
| 88 |
$(RM) Makefile.new |
| 89 |
|
| 90 |
mconfig mlint mxref: $(TOP)/revision.h |