From 8ac8ed8429d13126d5a8f61f7174914793f91179 Mon Sep 17 00:00:00 2001 From: lars Date: Sat, 21 Jan 2006 17:46:19 +0000 Subject: [PATCH] look for name of lyx binary (Makefile) --- documents/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/documents/Makefile b/documents/Makefile index 963b19b..08cf20c 100644 --- a/documents/Makefile +++ b/documents/Makefile @@ -10,6 +10,8 @@ TARGET_FILES := $(foreach file,$(LYX_FILES),_output/$(basename $(notdir $(file)) ASC_FILES := $(wildcard *.asc) # target: online or offline (will be overriden for online target automatically) LINE_STATUS = offline +# look for lyx executable +LYX_BIN = $(shell which lyx lyx-qt lyx-xform | head -1) # output parameters for latex2html @@ -62,7 +64,7 @@ $(TARGET_FILES): $(HTML_FILES) $(ASC_FILES) # create tex files from lyx $(TEX_FILES): menue.inc $(LYX_FILES) - lyx -e latex $*.lyx + $(LYX_BIN) -e latex $*.lyx # original html-files, as they are created by lyx