aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile20
1 files changed, 14 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 44116a7..c7663fe 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ include mk/$(OS).mk
LIB_MAJOR = 1
-LIB_MINOR = 0
+LIB_MINOR = 1
LIB_VERSION = $(LIB_MAJOR).$(LIB_MINOR)
@@ -22,9 +22,15 @@ OBJ =\
LOBJ = $(OBJ:.o=.lo)
MAN0 = libred.h.0
-MAN3 = libred_get_colour.3 libred_solar_elevation.3
MAN7 = libred.7
+MAN3 =\
+ libred_get_colour.3\
+ libred_get_colour_xy.3\
+ libred_get_temperature.3\
+ libred_get_temperature_xy.3\
+ libred_solar_elevation.3
+
all: libred.a libred.$(LIBEXT)
solar.o: libred.h
@@ -32,7 +38,9 @@ blackbody.o: 10deg-xy.i 10deg-rgb.i libred.h
generate-table.o: blackbody.c 10deg-xy.i libred.h
10deg-xy.i: 10deg
- sed -e 's/^/{/' -e 's/ /, /' -e 's/$$/},/' < 10deg | sed '$$s/,$$//' > $@
+ sed '56s/^.*$$/0.312727 0.329023/' < 10deg |\
+ sed -e 's/^/{/' -e 's/ /, /' -e 's/$$/},/' | \
+ sed '$$s/,$$//' > $@
10deg-rgb.i: generate-table 10deg
./generate-table > $@
@@ -66,9 +74,9 @@ install: libred.a libred.$(LIBEXT)
ln -sf -- libred.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/libred.$(LIBMAJOREXT)"
ln -sf -- libred.$(LIBMAJOREXT) "$(DESTDIR)$(PREFIX)/lib/libred.$(LIBEXT)"
cp -- libred.h "$(DESTDIR)$(PREFIX)/include"
- cp -- $(MAN0) "$(DESTDIR)$(MANPREFIX)/man0"
- cp -- $(MAN3) "$(DESTDIR)$(MANPREFIX)/man3"
- cp -- $(MAN7) "$(DESTDIR)$(MANPREFIX)/man7"
+ cp -P -- $(MAN0) "$(DESTDIR)$(MANPREFIX)/man0"
+ cp -P -- $(MAN3) "$(DESTDIR)$(MANPREFIX)/man3"
+ cp -P -- $(MAN7) "$(DESTDIR)$(MANPREFIX)/man7"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libred.a"