forked from GitHub/gf-core
move gf.cabal and all compiler dependent files into src/compiler
This commit is contained in:
35
Makefile
35
Makefile
@@ -18,22 +18,31 @@ else
|
||||
endif
|
||||
endif
|
||||
|
||||
all: build
|
||||
|
||||
dist/setup-config: gf.cabal Setup.hs WebSetup.hs
|
||||
ifneq ($(STACK),1)
|
||||
cabal ${CMD_PFX}configure
|
||||
endif
|
||||
|
||||
build: dist/setup-config
|
||||
${CMD} ${CMD_PFX}build
|
||||
|
||||
install:
|
||||
all: src/runtime/c/libpgf.la src/runtime/haskell/dist/setup-config src/compiler/dist/setup-config
|
||||
ifeq ($(STACK),1)
|
||||
stack install
|
||||
else
|
||||
cabal ${CMD_PFX}copy
|
||||
cabal ${CMD_PFX}register
|
||||
(cd src/runtime/haskell; ${CMD} ${CMD_PFX}install)
|
||||
(cd src/compiler; ${CMD} ${CMD_PFX}install)
|
||||
endif
|
||||
|
||||
src/runtime/c/libpgf.la: src/runtime/c/Makefile
|
||||
(cd src/runtime/c; make; sudo make install)
|
||||
|
||||
src/runtime/c/Makefile: src/runtime/c/Makefile.in src/runtime/c/configure
|
||||
(cd src/runtime/c; ./configure)
|
||||
|
||||
src/runtime/c/Makefile.in src/runtime/c/configure: src/runtime/c/configure.ac src/runtime/c/Makefile.am
|
||||
(cd src/runtime/c; autoreconf -i)
|
||||
|
||||
src/runtime/haskell/dist/setup-config: src/runtime/c/libpgf.la src/runtime/haskell/pgf2.cabal
|
||||
ifneq ($(STACK),1)
|
||||
(cd src/runtime/haskell; cabal ${CMD_PFX}configure)
|
||||
endif
|
||||
|
||||
src/compiler/dist/setup-config: src/compiler/gf.cabal src/compiler/Setup.hs src/compiler/WebSetup.hs
|
||||
ifneq ($(STACK),1)
|
||||
(cd src/compiler; cabal ${CMD_PFX}configure)
|
||||
endif
|
||||
|
||||
doc:
|
||||
|
||||
Reference in New Issue
Block a user