Makefile: Add .exe extension to BUILDCMD if building on Windows.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1096 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
parent
99d8d45b74
commit
3dfe4cb708
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -9,7 +9,6 @@ MANDIR := man
|
|||
TESTDIR := tests
|
||||
BUILDDIR := dist
|
||||
BUILDCONF := .setup-config
|
||||
BUILDCMD := ./setup
|
||||
BUILDVARS := vars
|
||||
CONFIGURE := configure
|
||||
|
||||
|
@ -28,6 +27,7 @@ WRAPPERS := html2markdown markdown2pdf hsmarkdown
|
|||
# Add .exe extensions if we're running Windows/Cygwin.
|
||||
EXTENSION := $(shell uname | tr '[:upper:]' '[:lower:]' | \
|
||||
sed -ne 's/^cygwin.*$$/\.exe/p')
|
||||
BUILDCMD := $(addsuffix $(EXTENSION), ./setup)
|
||||
EXECS := $(addsuffix $(EXTENSION),$(EXECSBASE))
|
||||
PROGS := $(EXECS) $(WRAPPERS)
|
||||
MAIN := $(firstword $(EXECS))
|
||||
|
|
Loading…
Reference in a new issue