look for name of lyx binary (Makefile)

This commit is contained in:
lars 2006-01-21 17:46:19 +00:00
parent adc762fad0
commit 8ac8ed8429

View file

@ -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