remove dead code

This commit is contained in:
Krasimir Angelov
2022-08-17 10:33:54 +02:00
parent aec123bb7d
commit 44c78e8cc7

View File

@@ -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::