Skip to content

Commit

Permalink
Merge pull request #46 from lochel/make
Browse files Browse the repository at this point in the history
make -C DIRECTORY: Change to DIRECTORY before doing anything
  • Loading branch information
robbr48 authored Mar 9, 2018
2 parents 2bf6a5c + 8975645 commit b7a83b7
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,33 @@ else
BINDIR=$(UP)/../bin/$(ABI)
endif


allplugins=ADAMS Simulink Modelica OpenModelica FMIWrapper
plugins=Modelica OpenModelica FMIWrapper

all default: lib
cd common; $(MAKE) all
$(MAKE) -C common all

lib:
# Note: lib will not make the manager!
cd 3rdParty; $(MAKE)
cd common; $(MAKE) lib
cd 3rdParty; $(MAKE)
$(MAKE) -C common lib

install: lib
cd common ; $(MAKE) install
$(MAKE) -C common install
for i in ${plugins} ; do \
( cd $$i ; $(MAKE) install ) \
$(MAKE) -C $$i install \
done

omtlmlib:
cd common; $(MAKE) omtlmlib
$(MAKE) -C common omtlmlib

depend:
cd common; $(MAKE) depend
$(MAKE) -C common depend

clean:
rm -rf $(BINDIR)/*.dll
cd common; $(MAKE) clean
rm -rf $(BINDIR)/*.dll
$(MAKE) -C common clean
cd 3rdParty; $(MAKE) clean
for i in ${allplugins} ; do \
( cd $$i ; $(MAKE) clean ) \
$(MAKE) -C $$i clean \
done

0 comments on commit b7a83b7

Please sign in to comment.