mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-25 10:48:54 -06:00
remove dead code
This commit is contained in:
12
Makefile
12
Makefile
@@ -6,21 +6,15 @@ VERSION=$(shell sed -ne "s/^version: *\([0-9.]*\).*/\1/p" gf.cabal)
|
|||||||
# Check if stack is installed
|
# Check if stack is installed
|
||||||
STACK=$(shell if hash stack 2>/dev/null; then echo "1"; else echo "0"; fi)
|
STACK=$(shell if hash stack 2>/dev/null; then echo "1"; else echo "0"; fi)
|
||||||
|
|
||||||
# Check if cabal >= 2.4 is installed (with v1- and v2- commands)
|
|
||||||
CABAL_NEW=$(shell if cabal v1-repl --help >/dev/null 2>&1 ; then echo "1"; else echo "0"; fi)
|
|
||||||
|
|
||||||
ifeq ($(STACK),1)
|
ifeq ($(STACK),1)
|
||||||
CMD=stack
|
CMD=stack
|
||||||
else
|
else
|
||||||
CMD=cabal
|
CMD=cabal
|
||||||
ifeq ($(CABAL_NEW),1)
|
|
||||||
CMD_PFX=v1-
|
|
||||||
endif
|
|
||||||
CMD_OPT="--force-reinstalls"
|
CMD_OPT="--force-reinstalls"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: src/runtime/c/libpgf.la
|
all: src/runtime/c/libpgf.la
|
||||||
cabal install gf
|
${CMD} install gf
|
||||||
|
|
||||||
src/runtime/c/libpgf.la: src/runtime/c/Makefile
|
src/runtime/c/libpgf.la: src/runtime/c/Makefile
|
||||||
(cd src/runtime/c; make; sudo make install)
|
(cd src/runtime/c; make; sudo make install)
|
||||||
@@ -32,10 +26,10 @@ src/runtime/c/Makefile.in src/runtime/c/configure: src/runtime/c/configure.ac sr
|
|||||||
(cd src/runtime/c; autoreconf -i)
|
(cd src/runtime/c; autoreconf -i)
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
${CMD} ${CMD_PFX}haddock
|
${CMD} haddock
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
${CMD} ${CMD_PFX}clean
|
${CMD} clean
|
||||||
bash bin/clean_html
|
bash bin/clean_html
|
||||||
|
|
||||||
html::
|
html::
|
||||||
|
|||||||
Reference in New Issue
Block a user