aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-12-24 15:04:54 +0000
committermerakor <cem@ckyln.com>2020-12-24 15:04:54 +0000
commitf1e84e565fc534fd4795fadf6bafa0f30b0520ba (patch)
treefa52ce5b7213c3691a3b24bf77b051ef03630b87 /Makefile
parent246eeaa2169dd7e0cf485b52a36f7ce64e72a80e (diff)
downloadcpt-f1e84e565fc534fd4795fadf6bafa0f30b0520ba.tar.gz
Makefile: fix installing files other than cpt-*
FossilOrigin-Name: 76e5ec56a8f045f2b4a31feb4cacfdf02cc6cd86cf7d7884ff48addc4862e5aa
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 4e0880d..1f03f57 100644
--- a/Makefile
+++ b/Makefile
@@ -33,23 +33,23 @@ install-bin: ${BIN}
install -Dm755 $${bin} ${DESTDIR}${BINDIR}/$${bin##*/}; done
install-src:
- for bin in src/*; do \
+ for bin in src/cpt-*; do \
install -Dm755 $${bin} ${DESTDIR}${BINDIR}/$${bin##*/}; done
install-contrib:
- for bin in contrib/*; do \
+ for bin in contrib/cpt-*; do \
install -Dm755 $${bin} ${DESTDIR}${BINDIR}/$${bin##*/}; done
install-contrib-static:
mkdir -p ${DESTDIR}${BINDIR}
- for bin in contrib/*; do \
+ for bin in contrib/cpt-*; do \
sed '/\. cpt-lib/r src/cpt-lib' $${bin} | \
sed '/\. cpt-lib/d' > ${DESTDIR}${BINDIR}/$${bin##*/}; \
chmod 755 ${DESTDIR}${BINDIR}/$${bin##*/}; done
install-src-static:
mkdir -p ${DESTDIR}${BINDIR}
- for bin in src/*; do \
+ for bin in src/cpt-*; do \
sed '/\. cpt-lib/r src/cpt-lib' $${bin} | \
sed '/\. cpt-lib/d' > ${DESTDIR}${BINDIR}/$${bin##*/}; \
chmod 755 ${DESTDIR}${BINDIR}/$${bin##*/}; done
@@ -61,7 +61,7 @@ install: install-bin install-src install-contrib install-do
install-static: install-bin install-src-static install-contrib-static install-doc
uninstall:
- for bin in ${BIN} src/* contrib/*; do \
+ for bin in ${BIN} src/cpt-* contrib/cpt-*; do \
rm -f ${DESTDIR}${BINDIR}/$${bin##*/}; done
for man in man/*; do rm -f ${DESTDIR}${MAN1}/$${man##*/}; done