Introduction
Introduction Statistics Contact Development Disclaimer Help
tMakefile - filmtools - various tools for photographic film development and dar…
git clone git://src.adamsgaard.dk/filmtools
Log
Files
Refs
LICENSE
---
tMakefile (984B)
---
1 .POSIX:
2
3 include config.mk
4
5 SRC = timeadj.c reciprocity.c
6 BIN = timeadj reciprocity
7 BIN_SCRIPT = filmprice filmscan
8 MAN1 = ${BIN:=.1} ${BIN_SCRIPT:=.1}
9
10 all: ${BIN}
11
12 ${BIN}: ${@:=.o}
13
14 OBJ = ${SRC:.c=.o}
15
16 ${OBJ}:
17
18 .o:
19 ${CC} ${FILMTOOLS_LDFLAGS} -o $@ $<
20
21 .c.o:
22 ${CC} ${FILMTOOLS_CFLAGS} ${FILMTOOLS_CPPFLAGS} -o $@ -c $<
23
24 filmprice_snapshot: filmprice
25 @out="filmprice_$$(date '+%Y-%m-%d')"; \
26 ./filmprice | tee "$$out"
27
28 clean:
29 rm -f ${BIN} ${OBJ}
30 rm -f *.html
31
32 install: all
33 mkdir -p ${DESTDIR}${PREFIX}/bin
34 cp -f ${BIN} ${BIN_SCRIPT} ${DESTDIR}${PREFIX}/bin
35 for f in ${BIN} ${BIN_SCRIPT}; do chmod 755 ${DESTDIR}${PREFIX}/…
36 mkdir -p ${DESTDIR}${MANPREFIX}/man1
37 cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1/
38 for m in ${MAN1}; do chmod 644 ${DESTDIR}${MANPREFIX}/man1/$$m; …
39
40 uninstall:
41 for f in ${BIN} ${BIN_SCRIPT}; do rm -f ${DESTDIR}${PREFIX}/bin/…
42 for m in ${MAN1}; do rm -f ${DESTDIR}${PREFIX}/man1/$$m; done
43
44 .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.