Skip to content

Commit

Permalink
Makefile: Don't build dependencies locally by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptiste Jonglez committed Nov 19, 2016
1 parent 71bd6ab commit 7c7beda
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ Using the Makefiles
~~~~~~~~~~~~~~~~~~~

If you have neither PDCurses with SDL support, nor yaml-cpp available on
your system, then just run the default target:
your system, then run this target:

$ make
$ make everything

It should download and build PDCurses and yaml-cpp, then build ASCIIpOrtal.

Expand Down
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@
# List of available ports
PORTS = mingw32 nosdl nosdl32 linux linux32

# standard build (should work on most unix if SDL is available)
# downloads and builds PDcurses against SDL for convenience.
help:
@echo
@echo "[*] To build asciiportal on Linux, run 'make linux', you need pdcurses and yaml-cpp."
@echo "[*] To build all dependencies locally, run 'make everything'."
@echo "[*] For other options (mingw32, no SDL), read the Makefile."

# Build every dependency locally (yaml-cpp and pdcurses), then asciiportal.
# You only need SDL.
# See 'linux' target if you already have PDCurses built against SDL.
default:
$(MAKE) -f Makefile.$@ $@
everything:
$(MAKE) -f Makefile.default default

# Other ports
$(PORTS):
Expand Down

0 comments on commit 7c7beda

Please sign in to comment.