Added a shellcheck-static Makefile target
This commit is contained in:
parent
c4181d45d2
commit
b069f7ed27
6
Makefile
6
Makefile
|
@ -1,6 +1,7 @@
|
||||||
# TODO: Phase out Makefile in favor of Cabal
|
# TODO: Phase out Makefile in favor of Cabal
|
||||||
|
|
||||||
GHCFLAGS=-O9
|
GHCFLAGS=-O9
|
||||||
|
GHCFLAGS_STATIC=$(GHCFLAGS) -optl-static -optl-pthread
|
||||||
|
|
||||||
all: shellcheck .tests shellcheck.1
|
all: shellcheck .tests shellcheck.1
|
||||||
: Done
|
: Done
|
||||||
|
@ -14,6 +15,7 @@ shellcheck: regardless
|
||||||
./test/runQuack && touch .tests
|
./test/runQuack && touch .tests
|
||||||
|
|
||||||
shellcheck.1: shellcheck.1.md
|
shellcheck.1: shellcheck.1.md
|
||||||
|
: Formatting man page
|
||||||
pandoc -s -t man $< -o $@
|
pandoc -s -t man $< -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -21,4 +23,8 @@ clean:
|
||||||
rm -f *.hi *.o ShellCheck/*.hi ShellCheck/*.o
|
rm -f *.hi *.o ShellCheck/*.hi ShellCheck/*.o
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
|
|
||||||
|
shellcheck-static: regardless
|
||||||
|
: Conditionally compiling a statically linked shellcheck-static
|
||||||
|
ghc $(GHCFLAGS_STATIC) --make shellcheck -o shellcheck-static
|
||||||
|
|
||||||
regardless:
|
regardless:
|
||||||
|
|
|
@ -76,5 +76,8 @@ To build and run the tests, cd to the shellcheck source directory and:
|
||||||
|
|
||||||
$ make
|
$ 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!
|
Happy ShellChecking!
|
||||||
|
|
Loading…
Reference in New Issue