Introduction
Introduction Statistics Contact Development Disclaimer Help
tAlso install shell scripts - filmtools - various tools for photographic film d…
git clone git://src.adamsgaard.dk/filmtools
Log
Files
Refs
---
commit 3ee407fdcbc0251f52f1d7f7104dd75fff75579e
parent 114aa08838c019e9c4dacea81acfc3591e78f3d5
Author: Anders Damsgaard <[email protected]>
Date: Mon, 20 Apr 2020 11:14:07 +0200
Also install shell scripts
Diffstat:
M Makefile | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
---
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/$$…
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; d…
for m in ${MAN1}; do rm -f ${DESTDIR}${PREFIX}/man1/$$m; done
-.PHONY: all clean install uninstall filmprice
+.PHONY: all clean install uninstall
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.