Added a shellcheck-static Makefile target

This commit is contained in:
Vidar Holen 2014-05-11 13:58:56 -07:00
parent c4181d45d2
commit b069f7ed27
2 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# TODO: Phase out Makefile in favor of Cabal
GHCFLAGS=-O9
GHCFLAGS_STATIC=$(GHCFLAGS) -optl-static -optl-pthread
all: shellcheck .tests shellcheck.1
: Done
@ -14,6 +15,7 @@ shellcheck: regardless
./test/runQuack && touch .tests
shellcheck.1: shellcheck.1.md
: Formatting man page
pandoc -s -t man $< -o $@
clean:
@ -21,4 +23,8 @@ clean:
rm -f *.hi *.o ShellCheck/*.hi ShellCheck/*.o
rm -rf dist
shellcheck-static: regardless
: Conditionally compiling a statically linked shellcheck-static
ghc $(GHCFLAGS_STATIC) --make shellcheck -o shellcheck-static
regardless:

View File

@ -76,5 +76,8 @@ To build and run the tests, cd to the shellcheck source directory and:
$ make
If you want to distribute the binary and/or run it on other distros, you
can `make shellcheck-static` to build a statically linked executable without
library dependencies.
Happy ShellChecking!