Skip to content

Commit

Permalink
- Install .app's instead of executables in OSX
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8018 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 25, 2011
1 parent 7a26594 commit 890b6dc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions OMNotebook/OMNotebookQT4/Makefile.unix.in
Expand Up @@ -7,7 +7,7 @@ QMAKE=@QMAKE@
EXE=@EXE@
NAME=OMNotebook

.PHONY: always $(NAME)$(EXE)
.PHONY: always $(NAME)

all: build

Expand All @@ -20,16 +20,12 @@ clean: Makefile
omc_communication.cc omc_communication.h: $(runtimedir)/omc_communication.idl
@IDLCMD@ $<

$(NAME)$(EXE): Makefile OMNotebook.config omc_communication.cc
$(NAME): Makefile OMNotebook.config omc_communication.cc
$(MAKE) -f Makefile
ifeq ($(EXE),.app)
$(NAME): $(NAME)$(EXE) always
cp -p $</Contents/MacOS/$(NAME) $@
endif

build: $(NAME)
mkdir -p $(builddir_share)/omnotebook/drmodelica/ $(builddir_share)/omnotebook/drcontrol/
cp -p $(NAME) $(builddir_bin)/
if [ "$(EXE)" = ".app" ]; then cp -rp $(NAME)$(EXE) ../../build/Applications/ ; else cp -p $(NAME) $(builddir_bin)/$(NAME); fi
cp -p *.xml $(builddir_share)/omnotebook/
cp -p OMNotebookHelp.onb $(builddir_share)/omnotebook/
(DRMODELICAPWD=`cd ../DrModelica/ && pwd` && \
Expand Down

0 comments on commit 890b6dc

Please sign in to comment.