Small Make tune-up
On first build, targets such as 'programs' already worked fine. By adding 'lib' as a dependency here, we make sure dependencies for the library are checked first so that it is rebuild if necessary on subsequent builds.
This commit is contained in:
parent
22169ecca0
commit
cf26e211f7
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -10,13 +10,13 @@ all: programs tests
|
||||||
|
|
||||||
no_test: programs
|
no_test: programs
|
||||||
|
|
||||||
programs:
|
programs: lib
|
||||||
$(MAKE) -C programs
|
$(MAKE) -C programs
|
||||||
|
|
||||||
lib:
|
lib:
|
||||||
$(MAKE) -C library
|
$(MAKE) -C library
|
||||||
|
|
||||||
tests:
|
tests: lib
|
||||||
$(MAKE) -C tests
|
$(MAKE) -C tests
|
||||||
|
|
||||||
ifndef WINDOWS
|
ifndef WINDOWS
|
||||||
|
@ -60,7 +60,7 @@ ifndef WINDOWS
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef WINDOWS
|
ifndef WINDOWS
|
||||||
check:
|
check: lib
|
||||||
$(MAKE) -C tests check
|
$(MAKE) -C tests check
|
||||||
|
|
||||||
test: check
|
test: check
|
||||||
|
|
Loading…
Reference in a new issue