Makefile revision d23ecf32e56cce69bc42eb5c96dddf7909c623ab
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# Authors: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# Jens Elkner, Uni Magdeburg 2016
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# This GNU Makefile will compile the hets system and provides also
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# targets for test programs during implementation phases.
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# If the following environment variables are set, their values get passed to
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# the corresponding tool as is: GHC_PKG_FLAGS (ghc-pkg), GHC_FLAGS (ghc).
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay -fwarn-unrecognised-pragmas -fno-warn-orphans $(NO_BIND_WARNING)
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# uncomment HC_PROF for profiling (and comment out packages in var.mk)
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# call resulting binary with a final +RTS -p to get a file <binary>.prof
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay#HC_PROF := -prof -auto-all -osuf p_o +RTS -K100m -RTS
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# -ddump-minimal-imports
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# uncomment the above line to generate .imports files for displayDependencyGraph
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# *.bin variants here to let them survive a 'make clean'
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# Documentation (no haddock stuff, i.e. "docs/index.html", since developer can
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# generated it on demand by themselves and other users dont't need it). Other
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# papers (doc/*.pdf) are already pre-generated.
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# Upgrade haskell-stack
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay# Create the build environment
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay $(STACK) build --install-ghc --only-dependencies $(STACK_DEPENDENCIES_FLAGS)
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason Lemay $(STACK) build --install-ghc --only-dependencies $(STACK_DEPENDENCIES_FLAGS)
5f22ff8ce7baf0b39668468cc854eec3eb946003Jason LemaySED := $(shell [ "$(OSNAME)" = 'SunOS' ] && printf 'gsed' || printf 'sed')
empty =
-i ATerm.Lib
$(APPENDPRELUDESTRING) < $< > $@
#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
-o $@ $(Haskell_files)
# the rules to create ATC .der.hs file for DriFT
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL2) -o $@ $<
-o $@ $(QVTR_files)
# all ATC .der.hs files for all logics
# a rule to create all .der.hs files
-i http://hackage.haskell.org/packages/archive/$(basename $(notdir $(file)))/latest/doc/html,$(file))
# Common/LaTeX_maps.hs generation
$(TESTTARGETS)
CommonLogic/TestData/*.{pp.het,th} Common/testxmldiff \
$(DTD2HS) \
.SUFFIXES:
%.d : %.hs
%.d : %.lhs
jars:
@if [ -e $(PFE_BASE) ]; then \
@if [ -e $(PFE_SETUP_FILE) ]; then \
# remove trailing .txz or .tar.xz
if [ -e $(USER_GUIDE) ]; then \
DEFAULT_DESTDIR := \
SUBDIR_common := \
SUBDIR_hets := \
SUBDIR_hets_server := \
# see OWL2/ProveFact.hs - it doesn't use OSGi so we need to extract JNI libs
X=`ls ../lib/uk.ac.manchester.cs.owl.factplusplus*.jar` ; \
%.bin:
# *.debian.tar.xz, for local packages we generate it on demand.
-l$(CHANGELOG)
-l$(CHANGELOG)
-l$(CHANGELOG)