git.iko.soy/typeable/pandoc
on master help sign in
Makefile: Add .exe extension to BUILDCMD if building on Windows.
3dfe4cbfiddlosopher
Makefile+1−1
@@ -9,7 +9,6 @@ MANDIR := man
9TESTDIR := tests
9TESTDIR := tests
10BUILDDIR := dist
10BUILDDIR := dist
11BUILDCONF := .setup-config
11BUILDCONF := .setup-config
12−BUILDCMD := ./setup
13BUILDVARS := vars
12BUILDVARS := vars
14CONFIGURE := configure
13CONFIGURE := configure
15
14
@@ -28,6 +27,7 @@ WRAPPERS := html2markdown markdown2pdf hsmarkdown
28# Add .exe extensions if we're running Windows/Cygwin.
27# Add .exe extensions if we're running Windows/Cygwin.
29EXTENSION := $(shell uname | tr '[:upper:]' '[:lower:]' | \
28EXTENSION := $(shell uname | tr '[:upper:]' '[:lower:]' | \
30 sed -ne 's/^cygwin.*$$/\.exe/p')
29 sed -ne 's/^cygwin.*$$/\.exe/p')
30+BUILDCMD := $(addsuffix $(EXTENSION), ./setup)
31EXECS := $(addsuffix $(EXTENSION),$(EXECSBASE))
31EXECS := $(addsuffix $(EXTENSION),$(EXECSBASE))
32PROGS := $(EXECS) $(WRAPPERS)
32PROGS := $(EXECS) $(WRAPPERS)
33MAIN := $(firstword $(EXECS))
33MAIN := $(firstword $(EXECS))