Goal I write my slides in a markdown file and compile it to reveal afterwards, uploading it to my webserver and do other things. I wanted to organise the steps after the markdown is written in a makefile:
PROJNAME = `pwd | grep -oP '(\w|-)+' | tail -n 2 | head -n 1 | tr '[:upper:]' '[:lower:]'` presentation: slides.pandoc pandoc --self-contained --data-dir=$(HOME)/.pandoc --template=slides/revealjs_niels_tmpl.html -V revealjs-url:$(HOME)/.pandoc/revealjs -V theme:solarized slides.pandoc -f markdown -t revealjs -o $(PROJNAME).html onlinepresent: $(PROJNAME).html cp $(PROJNAME).html $(HOME)/Share/index.html
PROJNAME looks for the project folder name and converts it to lowercase. In the example folder where I am using it and which generates the message shown in the Title, this results in
presentation rule compiles the slides as html by using
PROJNAME Macro is used to define the name of the output file.
make is stopping should copy a file which holds the project name (
ws-anno-ii.html) if this file exists to a mounted external filesystem (
Share). If it does not exist, of course the
presentation rule should apply first. But when I put the
make command nothing happens, and I get the message
make process stops with
Makefile:6: *** multiple target patterns. Stop. referring to the line
Can anyone explain to me why this is happening?