Skip to content

Commit

Permalink
- Update makefiles to fail if we failed to generate simcode (and only…
Browse files Browse the repository at this point in the history
… try if omc is already compiled)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5624 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jun 1, 2010
1 parent be11920 commit bb45ea3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Compiler/Makefile.in
Expand Up @@ -138,8 +138,13 @@ dreallyclean: .depend
report:
@(cd report ; $(MAKE))

ifeq ($(wildcard ../build/bin/omc),)
simcode:
@make -C susan_codegen/SimCode/ > susan.log 2>&1 && echo Susan generated new SimCode files. See susan.log for details. || echo "Using old Susan template files. See susan.log for details."
@echo OpenModelica has not been compiled yet. Using previously generated SimCode files.
else
simcode:
make -C susan_codegen/SimCode/
endif

depend: simcode
-$(RM) .depend
Expand All @@ -148,4 +153,4 @@ depend: simcode
.PRECIOUS: Makefile

Makefile: Makefile.in
$(top_builddir)/config.status
cd $(top_builddir); ./config.status

0 comments on commit bb45ea3

Please sign in to comment.