Skip to content

Commit

Permalink
update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Sep 21, 2010
1 parent ede5248 commit cbd56dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,17 @@ CONFIG_FILE=config.mk
all: install-deps install

install-deps:
# check required binaries
[[ -n $$(which git) ]]
[[ -n $$(which bash) ]]
[[ -n $$(which vim) ]]
[[ -n $$(which wget) || -n $$(which curl) ]]
$(call install_git_sources)

check-require:
@if [[ -n `which wget` || -n `which curl` || -n `which fetch` ]]; then echo "wget|curl|fetch: OK" ; else echo "wget|curl|fetch: NOT OK" ; fi
@if [[ -n `which vim` ]] ; then echo "vim: OK" ; else echo "vim: NOT OK" ; fi


config:
@rm -f $(CONFIG_FILE)
@echo "NAME=" >> $(CONFIG_FILE)
Expand Down
4 changes: 3 additions & 1 deletion template/Makefile.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,17 @@ CONFIG_FILE=config.mk
all: install-deps install

install-deps:
# check required binaries
[[ -n $$(which git) ]]
[[ -n $$(which bash) ]]
[[ -n $$(which vim) ]]
[[ -n $$(which wget) || -n $$(which curl) ]]
$(call install_git_sources)

check-require:
@if [[ -n `which wget` || -n `which curl` || -n `which fetch` ]]; then echo "wget|curl|fetch: OK" ; else echo "wget|curl|fetch: NOT OK" ; fi
@if [[ -n `which vim` ]] ; then echo "vim: OK" ; else echo "vim: NOT OK" ; fi


config:
@rm -f $(CONFIG_FILE)
@echo "NAME=" >> $(CONFIG_FILE)
Expand Down

0 comments on commit cbd56dd

Please sign in to comment.