mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Create GCNOS directories at install time if needed
Add GCNOS{GRP,MODE,OWN} for parity with FILES{GRP,MODE,OWN}. The defaults are based on BIN{GRP,MODE,OWN}. GCNOSDIRMODE is added, strictly for configurability, if need be.
This commit is contained in:
parent
66d0c18afc
commit
48c54cbc90
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/runtime-coverage/; revision=324871
@ -14,11 +14,25 @@
|
||||
FILESGROUPS?= FILES
|
||||
|
||||
.if !empty(GCNOS)
|
||||
|
||||
GCNOSOWN?= ${BINOWN}
|
||||
GCNOSGRP?= ${BINGRP}
|
||||
GCNOSMODE?= 0644
|
||||
GCNOSDIRMODE?= 0755
|
||||
|
||||
GCNOS:= ${GCNOS:O:u}
|
||||
FILESGROUPS+= GCNOS
|
||||
CLEANFILES+= ${GCNOS}
|
||||
|
||||
.for _gcno in ${GCNOS}
|
||||
GCNOSDIR_${_gcno:T}= ${COVERAGEDIR}${_gcno:H:tA}
|
||||
_gcno_dir= ${COVERAGEDIR}${_gcno:H:tA}
|
||||
GCNOSDIR_${_gcno:T}= ${_gcno_dir}
|
||||
# Create _gcno_dir if it doesn't already exist.
|
||||
.if !target(${DESTDIR}${_gcno_dir})
|
||||
${DESTDIR}${_gcno_dir}:
|
||||
${INSTALL} -d -o ${GCNOSOWN} -g ${GCNOSGRP} -m ${GCNOSDIRMODE} \
|
||||
${.TARGET}/
|
||||
.endif
|
||||
${_gcno}: ${DESTDIR}${_gcno_dir}
|
||||
.endfor
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user