tAlso install shell scripts - filmtools - various tools for photographic film development and darkroom printing
(HTM) git clone git://src.adamsgaard.dk/filmtools
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 3ee407fdcbc0251f52f1d7f7104dd75fff75579e
(DIR) parent 114aa08838c019e9c4dacea81acfc3591e78f3d5
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 20 Apr 2020 11:14:07 +0200
Also install shell scripts
Diffstat:
M Makefile | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -3,7 +3,8 @@
include config.mk
SRC = timeadj.c
-BIN = timeadj filmscan
+BIN = timeadj
+BIN_SCRIPT = filmprice filmscan
MAN1 = timeadj.1 filmscan.1
OBJ = ${SRC:.c=.o}
t@@ -16,9 +17,9 @@ all: ${BIN}
.c.o:
${CC} -c ${FILMTOOLS_CFLAGS} -o $@ -c $<
-filmprice_snapshot: filmprice.sh
+filmprice_snapshot: filmprice
@out="filmprice_$$(date '+%Y-%m-%d')"; \
- ./filmprice.sh | tee "$$out"
+ ./filmprice | tee "$$out"
clean:
rm -f ${BIN} ${OBJ}
t@@ -26,14 +27,14 @@ clean:
install: all
mkdir -p ${DESTDIR}${PREFIX}/bin
- cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
- for f in ${BIN}; do chmod 755 ${DESTDIR}${PREFIX}/bin/$$f; done
+ cp -f ${BIN} ${BIN_SCRIPT} ${DESTDIR}${PREFIX}/bin
+ for f in ${BIN} ${BIN_SCRIPT}; do chmod 755 ${DESTDIR}${PREFIX}/bin/$$f; done
mkdir -p ${DESTDIR}${MANPREFIX}/man1
cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1/
for m in ${MAN1}; do chmod 644 ${DESTDIR}${MANPREFIX}/man1/$$m; done
uninstall:
- for f in ${BIN}; do rm -f ${DESTDIR}${PREFIX}/bin/$$f; done
+ for f in ${BIN} ${BIN_SCRIPT}; do rm -f ${DESTDIR}${PREFIX}/bin/$$f; done
for m in ${MAN1}; do rm -f ${DESTDIR}${PREFIX}/man1/$$m; done
-.PHONY: all clean install uninstall filmprice
+.PHONY: all clean install uninstall