From 3e7c34bb66d7c11c85ebd76c3f32d6aed2f0e1d3 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 17 Apr 2012 22:28:13 -0300 Subject: [PATCH] components/Makefile: new target "view" to view the catalog Reuses DSV_PDFVIEWER, if set. --- components/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/Makefile b/components/Makefile index b489841..440f13a 100644 --- a/components/Makefile +++ b/components/Makefile @@ -4,7 +4,7 @@ # Note that we don't have the concept of a "library of everything" so far. # -.PHONY: all sch catalog missing clean spotless +.PHONY: all sch catalog view missing clean spotless all: sch @@ -21,6 +21,9 @@ catalog: DESCR-dcm genex -p -L . EXPAND DESCR-dcm >catalog.pdf || \ { rm -f catalog.pdf; exit 1; } +view: + $${DSV_PDFVIEWER:-xpdf} catalog.pdf + missing: ../scripts/missing-in-tree -L . EXPAND