From 3a624f5e231be635938172fee38b15046d4ef3dd Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Fri, 6 Jun 2003 13:46:55 +0000 Subject: [PATCH] Use cat ${.ALLSRC} > ${.TARGET} rather than ln -sf ${.ALLSRC} ${.TARGET} not to depends on absolute-path of symbolic links. Commented by: marcel, obrien, bde --- bin/csh/Makefile | 2 +- gnu/usr.bin/cc/cpp/Makefile | 2 +- gnu/usr.bin/cc/f77/Makefile | 2 +- lib/libform/Makefile | 2 +- lib/libmenu/Makefile | 2 +- lib/libncurses/Makefile | 2 +- lib/libpanel/Makefile | 2 +- lib/ncurses/form/Makefile | 2 +- lib/ncurses/menu/Makefile | 2 +- lib/ncurses/ncurses/Makefile | 2 +- lib/ncurses/panel/Makefile | 2 +- usr.bin/awk/Makefile | 2 +- usr.bin/less/Makefile.common | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/bin/csh/Makefile b/bin/csh/Makefile index e5d4ec197d7..ffd511d1471 100644 --- a/bin/csh/Makefile +++ b/bin/csh/Makefile @@ -73,7 +73,7 @@ NLSSRCFILES_${catalog:C/.*://}!= cd ${NLSSRCDIR_${catalog:C/.*://}}; echo set[0- .endfor csh.1: tcsh.man - ln -sf ${.ALLSRC} ${.TARGET} + cat ${.ALLSRC} > ${.TARGET} build-tools: gethost diff --git a/gnu/usr.bin/cc/cpp/Makefile b/gnu/usr.bin/cc/cpp/Makefile index 56fdc06de53..12be88f94c5 100644 --- a/gnu/usr.bin/cc/cpp/Makefile +++ b/gnu/usr.bin/cc/cpp/Makefile @@ -17,6 +17,6 @@ LDADD+= ${LIBCC_INT} CLEANFILES= cpp.1 cpp.1: cccp.1 - ln -sf ${.ALLSRC} ${.TARGET} + cat ${.ALLSRC} > ${.TARGET} .include diff --git a/gnu/usr.bin/cc/f77/Makefile b/gnu/usr.bin/cc/f77/Makefile index 4902ba5da70..233cae20804 100644 --- a/gnu/usr.bin/cc/f77/Makefile +++ b/gnu/usr.bin/cc/f77/Makefile @@ -18,6 +18,6 @@ LDADD= ${LIBCC_INT} CLEANFILES= f77.1 f77.1: g77.1 - ln -sf ${.ALLSRC} ${.TARGET} + cat ${.ALLSRC} > ${.TARGET} .include diff --git a/lib/libform/Makefile b/lib/libform/Makefile index 7c225887fd9..6e69075ba69 100644 --- a/lib/libform/Makefile +++ b/lib/libform/Makefile @@ -45,7 +45,7 @@ MANx= form.3x form_cursor.3x form_data.3x form_driver.3x \ CLEANFILES+=${page:T:S/x$//g} MAN+=${page:T:S/x$//g} ${page:T:S/x$//g}: ${page} - ln -s ${.ALLSRC} ${.TARGET} + cat ${.ALLSRC} > ${.TARGET} .endfor MLINKS+=form_cursor.3 pos_form_cursor.3 diff --git a/lib/libmenu/Makefile b/lib/libmenu/Makefile index 0c3088bd6db..fd3ddfe7115 100644 --- a/lib/libmenu/Makefile +++ b/lib/libmenu/Makefile @@ -42,7 +42,7 @@ MANx= menu.3x menu_attributes.3x menu_cursor.3x \ CLEANFILES+=${page:T:S/x$//g} MAN+=${page:T:S/x$//g} ${page:T:S/x$//g}: ${page} - ln -s ${.ALLSRC} ${.TARGET} + cat ${.ALLSRC} > ${.TARGET} .endfor MLINKS+=menu_attributes.3 menu_back.3 menu_attributes.3 menu_fore.3 \ diff --git a/lib/libncurses/Makefile b/lib/libncurses/Makefile index 9be40a00c28..0dc6702c4f4 100644 --- a/lib/libncurses/Makefile +++ b/lib/libncurses/Makefile @@ -410,7 +410,7 @@ MAN+= term.7 CLEANFILES+=${page:T:S/x$//g} MAN+=${page:T:S/x$//g} ${page:T:S/x$//g}: ${page} - ln -sf ${.ALLSRC} ${.TARGET} + cat ${.ALLSRC} > ${.TARGET} .endfor MLINKS+=ncurses.3 curses.3 diff --git a/lib/libpanel/Makefile b/lib/libpanel/Makefile index 5c1f6010dda..e715921652a 100644 --- a/lib/libpanel/Makefile +++ b/lib/libpanel/Makefile @@ -32,7 +32,7 @@ ncurses_def.h: MKncurses_def.sh ncurses_defs CLEANFILES+= panel.3 MAN= panel.3 panel.3: panel.3x - ln -s ${.ALLSRC} ${.TARGET} + cat ${.ALLSRC} > ${.TARGET} MLINKS+=panel.3 bottom_panel.3 panel.3 del_panel.3 panel.3 hide_panel.3 \ panel.3 move_panel.3 panel.3 new_panel.3 panel.3 panel_above.3 \ diff --git a/lib/ncurses/form/Makefile b/lib/ncurses/form/Makefile index 7c225887fd9..6e69075ba69 100644 --- a/lib/ncurses/form/Makefile +++ b/lib/ncurses/form/Makefile @@ -45,7 +45,7 @@ MANx= form.3x form_cursor.3x form_data.3x form_driver.3x \ CLEANFILES+=${page:T:S/x$//g} MAN+=${page:T:S/x$//g} ${page:T:S/x$//g}: ${page} - ln -s ${.ALLSRC} ${.TARGET} + cat ${.ALLSRC} > ${.TARGET} .endfor MLINKS+=form_cursor.3 pos_form_cursor.3 diff --git a/lib/ncurses/menu/Makefile b/lib/ncurses/menu/Makefile index 0c3088bd6db..fd3ddfe7115 100644 --- a/lib/ncurses/menu/Makefile +++ b/lib/ncurses/menu/Makefile @@ -42,7 +42,7 @@ MANx= menu.3x menu_attributes.3x menu_cursor.3x \ CLEANFILES+=${page:T:S/x$//g} MAN+=${page:T:S/x$//g} ${page:T:S/x$//g}: ${page} - ln -s ${.ALLSRC} ${.TARGET} + cat ${.ALLSRC} > ${.TARGET} .endfor MLINKS+=menu_attributes.3 menu_back.3 menu_attributes.3 menu_fore.3 \ diff --git a/lib/ncurses/ncurses/Makefile b/lib/ncurses/ncurses/Makefile index 9be40a00c28..0dc6702c4f4 100644 --- a/lib/ncurses/ncurses/Makefile +++ b/lib/ncurses/ncurses/Makefile @@ -410,7 +410,7 @@ MAN+= term.7 CLEANFILES+=${page:T:S/x$//g} MAN+=${page:T:S/x$//g} ${page:T:S/x$//g}: ${page} - ln -sf ${.ALLSRC} ${.TARGET} + cat ${.ALLSRC} > ${.TARGET} .endfor MLINKS+=ncurses.3 curses.3 diff --git a/lib/ncurses/panel/Makefile b/lib/ncurses/panel/Makefile index 5c1f6010dda..e715921652a 100644 --- a/lib/ncurses/panel/Makefile +++ b/lib/ncurses/panel/Makefile @@ -32,7 +32,7 @@ ncurses_def.h: MKncurses_def.sh ncurses_defs CLEANFILES+= panel.3 MAN= panel.3 panel.3: panel.3x - ln -s ${.ALLSRC} ${.TARGET} + cat ${.ALLSRC} > ${.TARGET} MLINKS+=panel.3 bottom_panel.3 panel.3 del_panel.3 panel.3 hide_panel.3 \ panel.3 move_panel.3 panel.3 new_panel.3 panel.3 panel_above.3 \ diff --git a/usr.bin/awk/Makefile b/usr.bin/awk/Makefile index ffc5e68504f..1d3642b6a83 100644 --- a/usr.bin/awk/Makefile +++ b/usr.bin/awk/Makefile @@ -27,6 +27,6 @@ maketab: ytab.h ${AWKSRC}/maketab.c CLEANFILES+= nawk.1 nawk.1: awk.1 - ln -sf ${.ALLSRC} ${.TARGET} + cat ${.ALLSRC} > ${.TARGET} .include diff --git a/usr.bin/less/Makefile.common b/usr.bin/less/Makefile.common index 6b3b62b97da..fcc6ccfa1ce 100644 --- a/usr.bin/less/Makefile.common +++ b/usr.bin/less/Makefile.common @@ -8,4 +8,4 @@ CFLAGS+=-I${.CURDIR}/../less -I${LSDIR} .SUFFIXES: .nro .1 .nro.1: - ln -s ${.IMPSRC} ${.TARGET} + cat ${.IMPSRC} > ${.TARGET}