about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-07-31 16:46:43 -0400
committerJosh Rickmar <jrick@devio.us>2012-07-31 16:46:43 -0400
commit7d377d0d8dc75fc51040127dff495988f2b184af (patch)
treea7610997edca4fd402254ea96b758618cf8173d1 /Makefile
parentd38f66db03cf801fb1b4e01acb2f15d91280b248 (diff)
downloadxombrero-7d377d0d8dc75fc51040127dff495988f2b184af.tar.gz
Implement an about:runtime page and :runtime command to view and
change runtime settings.  Settings that have been modified show in a
highlighted color in the table.  Tooltips describe the setting's
function, as well as the default values.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e9ada1a..f9b4c49 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ CPPFLAGS+= -DXOMBRERO_BUILDSTR=\"$(BUILDVERSION)\"
 
 MANDIR= ${PREFIX}/man/man
 
-CLEANFILES += ${.CURDIR}/javascript.h javascript.h xombrero.cat1 xombrero.core
+CLEANFILES += ${.CURDIR}/javascript.h javascript.h tooltip.h xombrero.cat1 xombrero.core
 
 JSFILES += hinting.js
 JSFILES += input-focus.js
@@ -49,6 +49,11 @@ javascript.h: ${JSFILES} js-merge-helper.pl
 	perl ${.CURDIR}/js-merge-helper.pl \
 		${JSCURDIR} > javascript.h
 
+tooltip.h: ${MAN} ascii2txt.pl txt2tooltip.pl
+	mandoc -Tascii ${.CURDIR}/${MAN} | \
+		perl ${.CURDIR}/ascii2txt.pl | \
+		perl ${.CURDIR}/txt2tooltip.pl > tooltip.h
+
 beforeinstall:
 	install -m 755 -d ${PREFIX}/bin
 	install -m 755 -d ${PREFIX}/man/man1/
@@ -64,7 +69,7 @@ beforeinstall:
 	install -m 644 ${.CURDIR}/style.css ${PREFIX}/share/xombrero
 	install -m 644 ${.CURDIR}/hsts-preload ${PREFIX}/share/xombrero
 
-${PROG} ${OBJS} beforedepend: javascript.h
+${PROG} ${OBJS} beforedepend: javascript.h tooltip.h
 
 # clang targets
 .if ${.TARGETS:M*analyze*}