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 487c201 commit d2e77eb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions OMShell/Makefile.unix.in
Expand Up @@ -7,7 +7,7 @@ QMAKE=@QMAKE@
EXE=@EXE@
NAME=OMShell

.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 OMShell.config omc_communication.cc
$(NAME): Makefile OMShell.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)/omshell/
cp -p $(NAME) $(builddir_bin)
if [ "$(EXE)" = ".app" ]; then cp -rp $(NAME)$(EXE) ../build/Applications/ ; else cp -p $(NAME) $(builddir_bin); fi
cp -p ../OMNotebook/OMNotebookQT4/commands.xml $(builddir_share)/omshell/

Makefile.unix: Makefile.unix.in
Expand Down

0 comments on commit d2e77eb

Please sign in to comment.