| 1 |
/* |
| 2 |
* Jmakefile for kit maker |
| 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.2 1994/04/22 09:35:35 ram |
| 17 |
;# patch23: new kitpost script |
| 18 |
;# |
| 19 |
;# Revision 3.0.1.1 1994/01/24 13:42:21 ram |
| 20 |
;# patch16: added dependency generation stage |
| 21 |
;# |
| 22 |
;# Revision 3.0 1993/08/18 12:04:21 ram |
| 23 |
;# Baseline for dist 3.0 netwide release. |
| 24 |
;# |
| 25 |
|
| 26 |
SCRIPT = makedist manifake kitsend kitpost |
| 27 |
|
| 28 |
ShellScriptTarget($(SCRIPT)) |
| 29 |
InstallScript(makeSH,$(SCRIPTDIR)) |
| 30 |
InstallManPage(makeSH,$(MANSRC)) |
| 31 |
|
| 32 |
SCRIPTSH = \ |
| 33 |
|expand f!$(SCRIPT)! |
| 34 |
!f.SH \ |
| 35 |
-expand \\ |
| 36 |
|
| 37 |
depend:: local_depend |
| 38 |
local_depend:: |
| 39 |
($(SED) '/^# DO NOT DELETE/q' Makefile && \ |
| 40 |
grep '^\$$grep' $(SCRIPTSH) | \ |
| 41 |
$(SED) -e "s/^.*' \([^ ]*\) >>[ ]*\([^ ]*\)/\2: \1/" \ |
| 42 |
) > Makefile.new |
| 43 |
cp Makefile Makefile.bak |
| 44 |
cp Makefile.new Makefile |
| 45 |
$(RM) Makefile.new |
| 46 |
|