1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
/*
* Jmakefile for lib subdirectory.
*/
;# $Id: Jmakefile 5 2006-08-25 22:09:39Z rmanfredi $
;#
;# Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
;#
;# You may redistribute only under the terms of the Artistic Licence,
;# as specified in the README file that comes with the distribution.
;# You may reuse parts of this distribution only within the terms of
;# that same Artistic Licence; a copy of which may be found at the root
;# of the source tree for dist 4.0.
;#
;# $Log: Jmakefile,v $
;# Revision 3.0.1.1 1994/01/24 13:43:31 ram
;# patch16: added new directory for C code sources
;#
;# Revision 3.0 1993/08/18 12:04:34 ram
;# Baseline for dist 3.0 netwide release.
;#
FILES = errnolist.a errnolist.mk
FILES_SH = errnolist makedepend makedir
INSTALLFLAGS = -m 444
all:: /* So that default make does not default to install */
MakeDirectories(install,$(PRIVLIB)/lib)
InstallMultiple($(FILES),$(PRIVLIB)/lib)
/*
* InstallSingleExt:
* This rule installs a single file whose basename is 'file' and
* extension is 'old' into 'file^^new'. This allows changing the
* dot extension of a file, for instance file.sh can be installed as
* file.SH.
*/
#define InstallSingleExt(step,file,dest,flags,old,new) @!\
step:: file^^old @@\
@case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
(set -x; $(INSTALL) -c flags file^^old dest/file^^new) @@\
@!\
de^^step:: @@\
@case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
(set -x; $(RM) dest/file^^new)
#define install_rule \
InstallSingleExt(install,!f,$(PRIVLIB)/lib,-m 444,.sh,.SH)
Expand(install_rule,f!$(FILES_SH)!)
SetSubdirs(C)
|