Skip to content

Commit

Permalink
Added 'make links' Makefile target
Browse files Browse the repository at this point in the history
  • Loading branch information
simonfuhrmann committed Aug 21, 2015
1 parent 24aaeda commit 31710d4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
10 changes: 9 additions & 1 deletion Makefile
@@ -1,16 +1,24 @@
# Builds libs and all apps except umve
all:
$(MAKE) -C libs
$(MAKE) -C apps

# Builds Doxygen documentation
doc:
$(MAKE) -C docs

# Builds the tests, execute with ./tests/test
test:
$(MAKE) -C tests

# Cleans all libs and apps except umve
clean:
$(MAKE) -C apps $@
$(MAKE) -C libs $@
$(MAKE) -C tests $@

.PHONY: all doc test clean
# Creates symbolic links to all apps in $HOME/bin/
links:
$(MAKE) -C apps $@

.PHONY: all doc test clean links
16 changes: 15 additions & 1 deletion apps/Makefile
Expand Up @@ -24,4 +24,18 @@ clean:
$(MAKE) -C meshclean $@
$(MAKE) -C viewupgrade $@

.PHONY: all clean
links:
ln -sir apps/bundle2pset/bundle2pset $(HOME)/bin/
ln -sir apps/dmrecon/dmrecon $(HOME)/bin/
ln -sir apps/makescene/makescene $(HOME)/bin/
ln -sir apps/meshconvert/meshconvert $(HOME)/bin/
ln -sir apps/scene2pset/scene2pset $(HOME)/bin/
ln -sir apps/sfmrecon/sfmrecon $(HOME)/bin/
ln -sir apps/fssrecon/fssrecon $(HOME)/bin/
ln -sir apps/mesh2pset/mesh2pset $(HOME)/bin/
ln -sir apps/meshalign/meshalign $(HOME)/bin/
ln -sir apps/meshclean/meshclean $(HOME)/bin/
ln -sir apps/viewupgrade/viewupgrade $(HOME)/bin/
ln -sir apps/umve/umve $(HOME)/bin/

.PHONY: all clean links

0 comments on commit 31710d4

Please sign in to comment.