aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-08-14 13:44:38 +0000
committermerakor <cem@ckyln.com>2021-08-14 13:44:38 +0000
commit3dfc9c3af5de0e17069b0195e416d50a97edbf0b (patch)
treeadd44e1cde4ea73e418055def2a1756a63d5f8bc /Makefile
parentcb68663adb63f8ba8a0b80d47450053d66ff339a (diff)
parent674c01cb33a9ac229c80209b05f0dcd464a41c05 (diff)
downloadcpt-3dfc9c3af5de0e17069b0195e416d50a97edbf0b.tar.gz
merge cpt-6.2.x
FossilOrigin-Name: 6d1549c62d46ee833d00b3d1a815afd0fadd7f8ac84039f79e5331a4d1142d75
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b2c7a5f..691caf6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
# Carbs Packaging Tools
--include config.mk
+include config.mk
INSTALL_SH = ./tools/install.sh
CONTRIB = `find contrib -name 'cpt*' ! -name '*.*'`
@@ -7,7 +7,6 @@ SRC = `find src -name 'cpt*' ! -name '*.*'`
BIN = ${SRC} ${CONTRIB}
all: src/cpt-lib
- @if ! [ -e config.mk ]; then echo "Please run './configure'"; exit 1; fi
@test "${DOCS}" != yes || ${MAKE} -C docs all
src/cpt-lib: src/cpt-lib.in
@@ -30,15 +29,14 @@ tests/etc/cpt-hook:
ln -s ../hook-file $@
dist: docs/cpt.info
- @if ! [ -e config.mk ]; then echo "Please run './configure'"; exit 1; fi
./tools/mkdist.sh "${VERSION}"
install: all
test "${DOCS}" != yes || ${MAKE} -C docs install
[ -f docs/cpt.info ] && \
- ${INSTALL_SH} -Dm644 docs/cpt.info ${DESTDIR}${INFODIR}/cpt.info
+ ${INSTALL_SH} -Dm644 docs/cpt.info ${DESTDIR}${INFODIR}/cpt.info ||:
[ -f docs/cpt.txt ] && \
- ${INSTALL_SH} -Dm644 docs/cpt.txt ${DESTDIR}${DOCDIR}/cpt.txt
+ ${INSTALL_SH} -Dm644 docs/cpt.txt ${DESTDIR}${DOCDIR}/cpt.txt ||:
${INSTALL_SH} -Dm644 CHANGELOG.md ${DESTDIR}${DOCDIR}/CHANGELOG
${INSTALL_SH} -Dm755 -t ${DESTDIR}${BINDIR} ${BIN}
${INSTALL_SH} -Dm644 -t ${DESTDIR}${MAN1} man/*.1