Skip to content

Commit

Permalink
Try to guard against inclusion
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19369 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 2, 2014
1 parent 3543bb0 commit 161a319
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Compiler/boot/Makefile.common
Expand Up @@ -8,8 +8,8 @@ all:
endif

generate-files-in-steps:
$(MAKE) Makefile.sources
$(MAKE) templates
$(MAKE) Makefile.sources
$(MAKE) interfaces
$(MAKE) Makefile.depends
$(MAKE) generate-files
Expand Down Expand Up @@ -68,7 +68,8 @@ interfaces: $(ALL_INTERFACES) $(ALL_FILES)
@touch $@
%.interface.mo: %.stamp.mo


ifeq ($(wildcard $(OMC)),)
else
Makefile.sources: LoadCompilerSources.mos MakeSources.mos
$(OMC) MakeSources.mos
mv Makefile.sources.tmp Makefile.sources
Expand All @@ -79,6 +80,7 @@ LoadCompilerInterface.mos: Makefile.sources
Makefile.depends: MakeDepends.mos LoadCompilerInterface.mos Makefile.sources $(ALL_INTERFACES:%.stamp.mo=%.interface.mo)
@rm -f $@
$(OMC) $<
endif

$(GEN_DIR)%.stamp:
@test ! -z "$^" || (echo Empty dependencies for $@ ; false)
Expand Down

0 comments on commit 161a319

Please sign in to comment.