bsd.prog.mk (0dfb7ef6ae79ca50ce3bc51b5c4c69aa9e9d5c99) bsd.prog.mk (116d45081bd34c66a211d5b577144b5b61aa5b7b)
1# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
2# $FreeBSD$
3
4.include <bsd.init.mk>
5
6.SUFFIXES: .out .o .c .cc .cpp .cxx .C .m .y .l .ln .s .S .asm
7
8# XXX The use of COPTS in modern makefiles is discouraged.

--- 163 unchanged lines hidden (view full) ---

172realinstall: _scriptsinstall
173.ORDER: beforeinstall _scriptsinstall
174
175SCRIPTSDIR?= ${BINDIR}
176SCRIPTSOWN?= ${BINOWN}
177SCRIPTSGRP?= ${BINGRP}
178SCRIPTSMODE?= ${BINMODE}
179
1# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
2# $FreeBSD$
3
4.include <bsd.init.mk>
5
6.SUFFIXES: .out .o .c .cc .cpp .cxx .C .m .y .l .ln .s .S .asm
7
8# XXX The use of COPTS in modern makefiles is discouraged.

--- 163 unchanged lines hidden (view full) ---

172realinstall: _scriptsinstall
173.ORDER: beforeinstall _scriptsinstall
174
175SCRIPTSDIR?= ${BINDIR}
176SCRIPTSOWN?= ${BINOWN}
177SCRIPTSGRP?= ${BINGRP}
178SCRIPTSMODE?= ${BINMODE}
179
180STAGE_AS_SETS+= scripts
181stage_as.scripts: ${SCRIPTS}
182FLAGS.stage_as.scripts= -m ${SCRIPTSMODE}
183STAGE_FILES_DIR.scripts= ${STAGE_OBJTOP}
180.for script in ${SCRIPTS}
181.if defined(SCRIPTSNAME)
182SCRIPTSNAME_${script:T}?= ${SCRIPTSNAME}
183.else
184SCRIPTSNAME_${script:T}?= ${script:T:R}
185.endif
186SCRIPTSDIR_${script:T}?= ${SCRIPTSDIR}
187SCRIPTSOWN_${script:T}?= ${SCRIPTSOWN}
188SCRIPTSGRP_${script:T}?= ${SCRIPTSGRP}
189SCRIPTSMODE_${script:T}?= ${SCRIPTSMODE}
184.for script in ${SCRIPTS}
185.if defined(SCRIPTSNAME)
186SCRIPTSNAME_${script:T}?= ${SCRIPTSNAME}
187.else
188SCRIPTSNAME_${script:T}?= ${script:T:R}
189.endif
190SCRIPTSDIR_${script:T}?= ${SCRIPTSDIR}
191SCRIPTSOWN_${script:T}?= ${SCRIPTSOWN}
192SCRIPTSGRP_${script:T}?= ${SCRIPTSGRP}
193SCRIPTSMODE_${script:T}?= ${SCRIPTSMODE}
194STAGE_AS_${script:T}= ${SCRIPTSDIR_${script:T}}/${SCRIPTSNAME_${script:T}}
190_scriptsinstall: _SCRIPTSINS_${script:T}
191_SCRIPTSINS_${script:T}: ${script}
192 ${INSTALL} -o ${SCRIPTSOWN_${.ALLSRC:T}} \
193 -g ${SCRIPTSGRP_${.ALLSRC:T}} -m ${SCRIPTSMODE_${.ALLSRC:T}} \
194 ${.ALLSRC} \
195 ${DESTDIR}${SCRIPTSDIR_${.ALLSRC:T}}/${SCRIPTSNAME_${.ALLSRC:T}}
196.endfor
197.endif

--- 39 unchanged lines hidden (view full) ---

237
238.if ${MK_STAGING} != "no"
239.if defined(_SKIP_BUILD)
240stage_files stage_as:
241.else
242# normally only libs and includes are staged
243.if ${MK_STAGING_PROG:Uno} != "no"
244STAGE_DIR.prog= ${STAGE_OBJTOP}${BINDIR}
195_scriptsinstall: _SCRIPTSINS_${script:T}
196_SCRIPTSINS_${script:T}: ${script}
197 ${INSTALL} -o ${SCRIPTSOWN_${.ALLSRC:T}} \
198 -g ${SCRIPTSGRP_${.ALLSRC:T}} -m ${SCRIPTSMODE_${.ALLSRC:T}} \
199 ${.ALLSRC} \
200 ${DESTDIR}${SCRIPTSDIR_${.ALLSRC:T}}/${SCRIPTSNAME_${.ALLSRC:T}}
201.endfor
202.endif

--- 39 unchanged lines hidden (view full) ---

242
243.if ${MK_STAGING} != "no"
244.if defined(_SKIP_BUILD)
245stage_files stage_as:
246.else
247# normally only libs and includes are staged
248.if ${MK_STAGING_PROG:Uno} != "no"
249STAGE_DIR.prog= ${STAGE_OBJTOP}${BINDIR}
245STAGE_SYMLINKS_DIR.prog= ${STAGE_OBJTOP}
246
247.if defined(PROGNAME)
248STAGE_AS_SETS+= prog
249STAGE_AS_${PROG}= ${PROGNAME}
250stage_as.prog: ${PROG}
250
251.if defined(PROGNAME)
252STAGE_AS_SETS+= prog
253STAGE_AS_${PROG}= ${PROGNAME}
254stage_as.prog: ${PROG}
251.if !empty(PROG)
252all: stage_as
253.endif
254.else
255STAGE_SETS+= prog
256stage_files.prog: ${PROG}
255.else
256STAGE_SETS+= prog
257stage_files.prog: ${PROG}
257.if !empty(PROG)
258all: stage_files
259.endif
258.endif
260.endif
261
259
260.if !empty(LINKS)
261all: stage_links
262STAGE_LINKS.prog= ${LINKS}
263.endif
262.if !empty(SYMLINKS)
264.if !empty(SYMLINKS)
263all: stage_symlinks
265all: stage_symlinks
264STAGE_SYMLINKS.prog= ${SYMLINKS}
265.endif
266
266STAGE_SYMLINKS.prog= ${SYMLINKS}
267.endif
268
269.if !empty(STAGE_AS_SETS)
270all: stage_as
267.endif
271.endif
272.if !empty(STAGE_SETS)
273all: stage_files
274.endif
275
276.endif
268.include <meta.stage.mk>
269.endif
270.endif
277.include <meta.stage.mk>
278.endif
279.endif