git.iko.soy/typeable/pandoc
on master help sign in
Makefile now checks to see if we're running Cygwin/Windows; if we are,

'.exe' extension is added to each executable in EXECS. git-svn-id: https://pandoc.googlecode.com/svn/trunk@192 788f1e2b-df1e-0410-8736-df70ead52e1b

commitba16d6ae474b17cf910ab93783d0bf349f9251e2 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateWed 13 Dec 2006, 17:54 (20 years ago) parent00fff7d
1 file changed+4−1
Makefile+4−1
Makefile+4−1
@@ -18,7 +18,10 @@ CONFIGURE := configure
1818#-------------------------------------------------------------------------------
1919NAME := $(shell sed -ne 's/^[Nn]ame:[[:space:]]*//p' $(CABAL).in)
2020VERSION := $(shell sed -ne 's/^version[[:space:]]*=[[:space:]]*"\([^"]*\)"/\1/p' $(SRCDIR)/Main.hs)
21−EXECS := $(shell sed -ne 's/^[Ee]xecutable:[[:space:]]*//p' $(CABAL).in)
21+EXECSBASE := $(shell sed -ne 's/^[Ee]xecutable:[[:space:]]*//p' $(CABAL).in)
22+# Add .exe extensions if we're running Windows/Cygwin.
23+EXTENSION := $(shell uname | tr '[:upper:]' '[:lower:]' | sed -ne 's/^cygwin.*$$/\.exe/p')
24+EXECS := $(patsubst %,%$(EXTENSION),$(EXECSBASE))
2225# First entry in Cabal's executable stanza is the main executable.
2326MAIN := $(firstword $(EXECS))
2427