about summary refs log tree commit diff stats
path: root/freebsd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/Makefile')
-rw-r--r--freebsd/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/freebsd/Makefile b/freebsd/Makefile
index 9ed119b..011354c 100644
--- a/freebsd/Makefile
+++ b/freebsd/Makefile
@@ -19,12 +19,17 @@ MANDIR?= $(PREFIX)/man
 
 CC?= cc
 
-all: ../javascript.h xombrero
+all: ../javascript.h ../tooltip.h xombrero
 
 ../javascript.h: ../js-merge-helper.pl ../hinting.js ../autoscroll.js
 	perl ../js-merge-helper.pl ../hinting.js ../input-focus.js \
 	../autoscroll.js > ../javascript.h
 
+../tooltip.h: ../ascii2txt.pl ../txt2tooltip.pl ../xombrero.1
+	nroff -c -Tascii -mandoc ../xombrero.1 | \
+	perl ../ascii2txt.pl | \
+	perl ../txt2tooltip.pl > ../tooltip.h
+
 xombrero.o: ../xombrero.o
 
 unix.o: ../unix.o
@@ -51,7 +56,7 @@ externaleditor.o: ../externaleditor.o
 
 tldlist.o: ../tldlist.o
 
-../xombrero.o: ../javascript.h
+../xombrero.o: ../javascript.h ../tooltip.h
 
 xombrero: xombrero.o freebsd.o marco.o about.o inspector.o whitelist.o settings.o \
 	cookie.o history.o completion.o inputfocus.o tldlist.o externaleditor.o \
@@ -77,5 +82,6 @@ install: all
 clean:
 	rm -f xombrero *.o
 	rm -f javascript.h
+	rm -f tooltip.h
 
 .PHONY: all install clean