Skip to content

Commit

Permalink
Regenerate OpenModelicaBootstrappingHeader.h also for the bootstrappe…
Browse files Browse the repository at this point in the history
…d target

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18226 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 22, 2013
1 parent 8c0e3c5 commit 229c357
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
17 changes: 17 additions & 0 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,23 @@ mkbuilddirs:

release: omc-diff omc

omc-bootstrapped:
if test -f @OMC@; then $(MAKE) bootstrap-from-compiled; else $(MAKE) bootstrap-from-tarball; fi

# configure --without-rml works using this target
bootstrap-from-tarball:
$(MAKE) bootstrap-dependencies
time $(MAKE) -C testsuite/openmodelica/bootstrapping -f LinkMain.makefile bootstrap-from-tarball
$(MAKE) omlibrary

bootstrap-dependencies: omc-diff interactive docs fmi fmil opencl_rt lis
# NOTE: OpenModelicaBootstrappingHeader.h has to be regenerated without any other process writing to so/etc or you get bus errors
$(MAKE) -C Compiler OpenModelicaBootstrappingHeader.h
$(MAKE) -C Compiler/runtime install
$(MAKE) -C Compiler builtin install_scripts
$(MAKE) -C Parser install
$(MAKE) -C Compiler/modpar install

install-python:
(time $(MAKE) -C PythonInterface -f $(defaultMakefileTarget))

Expand Down
15 changes: 0 additions & 15 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -103,28 +103,13 @@ qtclean: qtclean-common
$(MAKE) -C OMOptimBasis/build -f Makefile.unix clean
endif

omc-bootstrapped:
if test -f @OMC@; then $(MAKE) bootstrap-from-compiled; else $(MAKE) bootstrap-from-tarball; fi

# configure --without-rml works using this target
bootstrap-from-tarball:
$(MAKE) bootstrap-dependencies
time $(MAKE) -C testsuite/openmodelica/bootstrapping -f LinkMain.makefile bootstrap-from-tarball
$(MAKE) omlibrary

# configure --without-rml works using this target, but requires a compiled omc (either from bootstrap or regular one)
bootstrap-from-compiled:
test -f @OMC@
$(MAKE) bootstrap-dependencies
$(MAKE) -C testsuite/openmodelica/bootstrapping -f LinkMain.makefile bootstrap-from-compiled
$(MAKE) omlibrary

bootstrap-dependencies: omc-diff interactive docs fmi fmil opencl_rt lis
$(MAKE) -C Compiler/runtime install
$(MAKE) -C Compiler builtin install_scripts
$(MAKE) -C Parser install
$(MAKE) -C Compiler/modpar install

modelica3d:
ifeq (@MODELICA3D@,)
@echo Skipping Modelica3D
Expand Down

0 comments on commit 229c357

Please sign in to comment.