mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 10:04:41 +00:00
32 lines
788 B
Makefile
32 lines
788 B
Makefile
all:
|
|
|
|
install:
|
|
.for TREE in ${TREES}
|
|
@mkdir -p ${DESTDIR}${ROOT}
|
|
@cp -vr ${TREE} ${DESTDIR}${ROOT}
|
|
@(cd ${TREE}; find * -type f) | while read FILE; do \
|
|
if [ $${FILE%%.in} != $${FILE} ]; then \
|
|
sed -i '' \
|
|
-e "s=%%CORE_PACKAGESITE%%=${CORE_PACKAGESITE}=g" \
|
|
-e "s=%%CORE_REPOSITORY%%=${CORE_REPOSITORY}=g" \
|
|
${DESTDIR}${ROOT}/${TREE}/$${FILE}; \
|
|
mv -v ${DESTDIR}${ROOT}/${TREE}/$${FILE} \
|
|
${DESTDIR}${ROOT}/${TREE}/$${FILE%%.in}; \
|
|
fi \
|
|
done
|
|
.endfor
|
|
|
|
plist:
|
|
.for TREE in ${TREES}
|
|
@(cd ${TREE}; find * -type f) | while read FILE; do \
|
|
FILE="$${FILE%%.in}"; \
|
|
if [ $${FILE%%.sample} != $${FILE} ]; then \
|
|
echo "@sample ${ROOT}/${TREE}/$${FILE}"; \
|
|
else \
|
|
echo "${ROOT}/${TREE}/$${FILE}"; \
|
|
fi; \
|
|
done
|
|
.endfor
|
|
|
|
.PHONY: install plist
|