Commit 4453f751 authored by Franco Fichtner's avatar Franco Fichtner

Mk: add NO_SAMPLE mod to install/plist targets

parent 0246d65b
...@@ -18,7 +18,12 @@ install${TARGET}: force ...@@ -18,7 +18,12 @@ install${TARGET}: force
${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE}; \ ${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE}; \
mv -v ${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE} \ mv -v ${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE} \
${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE%%.in}; \ ${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE%%.in}; \
fi \ fi; \
FILE="$${FILE%%.in}"; \
if [ -n "${NO_SAMPLE}" -a $${FILE%%.sample} != $${FILE} ]; then \
mv -v ${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE} \
${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE%%.sample}; \
fi; \
done done
.endfor .endfor
...@@ -26,9 +31,12 @@ plist${TARGET}: force ...@@ -26,9 +31,12 @@ plist${TARGET}: force
.for TREE in ${TREES${TARGET}} .for TREE in ${TREES${TARGET}}
@(cd ${TREE}; find * -type f) | while read FILE; do \ @(cd ${TREE}; find * -type f) | while read FILE; do \
FILE="$${FILE%%.in}"; PREFIX=""; \ FILE="$${FILE%%.in}"; PREFIX=""; \
if [ $${FILE%%.sample} != $${FILE} ]; then \ if [ -z "${NO_SAMPLE}" -a $${FILE%%.sample} != $${FILE} ]; then \
PREFIX="@sample "; \ PREFIX="@sample "; \
fi; \ fi; \
if [ -n "${NO_SAMPLE}" ]; then \
FILE="$${FILE%%.sample}"; \
fi; \
echo "$${PREFIX}${ROOT${TARGET}}/${TREE}/$${FILE}"; \ echo "$${PREFIX}${ROOT${TARGET}}/${TREE}/$${FILE}"; \
done done
.endfor .endfor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment