X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=Makefile;h=cf4ceaac95b1071550b581bc2c38f9f40a9c73f4;hb=a17a750317f7ef52fcafbb5d70a8cc806d9e7f82;hp=cd3b15bd0c6de52bffa1c6f5740f4dceea4ccb35;hpb=d8e5774323d5408e119b5fa3cce1c73c7345e8f7;p=simavr diff --git a/Makefile b/Makefile index cd3b15b..cf4ceaa 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,34 @@ +# Makefile +# Normal build will link against the shared library for simavr +# in the current build tree, so you don't have to 'install' to +# run simavr or the examples. +# +# For package building, you will need to pass RELEASE=1 to make +RELEASE ?= 0 -all: make-tests - make -C simavr +.PHONY: doc -make-tests: - make -C tests +all: build-simavr build-tests build-examples + +build-simavr: + $(MAKE) -C simavr RELEASE=$(RELEASE) + +build-tests: build-simavr + $(MAKE) -C tests RELEASE=$(RELEASE) + +build-examples: build-simavr + $(MAKE) -C examples RELEASE=$(RELEASE) + +install: + $(MAKE) -C simavr install RELEASE=$(RELEASE) + +doc: + $(MAKE) -C doc RELEASE=$(RELEASE) clean: - make -C simavr clean - make -C tests clean - \ No newline at end of file + $(MAKE) -C simavr clean + $(MAKE) -C tests clean + $(MAKE) -C examples clean + $(MAKE) -C doc clean +