Skip to content

Commit

Permalink
add gitclean to Makefile.in also
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo committed Sep 4, 2015
1 parent 2ab6f53 commit 88ced1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Makefile.in
Expand Up @@ -68,6 +68,13 @@ clean:
test ! -d build || rm -r build/
for d in @subdirs@; do $(MAKE) -C $$d clean; done

LIBGITDIRS = `ls -f libraries/git`

gitclean:
git submodule foreach --recursive 'git clean -fdx -e /git -e /svn'
git clean -fdx -e OpenModelicaSetup -e .project -e .externalToolBuilders/OMDev-MINGW-OpenModelicaBuilder.launch
for d in $(LIBGITDIRS); do git clean -fdx libraries/git/$$d; done

prefix=@prefix@
exec_prefix=@exec_prefix@
datarootdir = @datarootdir@
Expand Down
2 changes: 1 addition & 1 deletion Makefile.omdev.mingw
Expand Up @@ -136,7 +136,7 @@ clean:
$(MAKE) -f $(defaultMakefileTarget) -C OMCompiler clean OMBUILDDIR=$(OMBUILDDIR)
test ! -d $(OMBUILDDIR) || rm -rf $(OMBUILDDIR)

LIBGITDIRS = `ls libraries/git`
LIBGITDIRS = `ls -f libraries/git`

gitclean:
git submodule foreach --recursive 'git clean -fdx -e /git -e /svn'
Expand Down

0 comments on commit 88ced1f

Please sign in to comment.