summaryrefslogtreecommitdiff
path: root/gnu/dist/sendmail/devtools/M4/UNIX/links.m4
blob: 536e7afd54019c371925a3f0380e310b1131b36f (plain)
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
divert(-1)
#
# Copyright (c) 1999 Sendmail, Inc. and its suppliers.
#	All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#
#  Definitions for Makefile construction for sendmail
#
#	Id: links.m4,v 8.5 1999/07/25 03:53:08 gshapiro Exp
#	$NetBSD: links.m4,v 1.3 2003/06/01 14:06:53 atatat Exp $
#
divert(0)dnl
define(`bldMAKE_SOURCE_LINK',
`$1: ${SRCDIR}/$1
	-ln -s ${SRCDIR}/$1 $1'
)dnl
define(`bldMAKE_SOURCE_LINKS', 
`bldFOREACH(`bldMAKE_SOURCE_LINK(', $1)'dnl
)dnl
define(`bldMAKE_TARGET_LINKS', 
`	for i in $2; do \
		rm -f $$i; \
		ln -s $1 $$i; \
	done'
)dnl