fix up test targets

- PHONY is misspelled
- fix the pdata_tools target dep
- add a "check" alias to match standard automake behavior
- mark test & check targets as phony
This commit is contained in:
Mike Frysinger 2016-05-08 23:35:19 -04:00
parent 7dbc5d1221
commit b46676575c
2 changed files with 4 additions and 3 deletions

View File

@ -229,12 +229,13 @@ install: bin/pdata_tools
ifeq ("@TESTING@", "yes")
include unit-tests/Makefile
.PHONEY: features
.PHONY: features test check
features: pdata_tools
features: bin/pdata_tools
cucumber --no-color --format progress
test: features unit-test
check: unit-test
endif
-include $(DEPEND_FILES)

View File

@ -84,7 +84,7 @@ unit-tests/unit_tests: $(TEST_OBJECTS) lib/libgmock.a lib/libpdata.a
@echo " [LD] $<"
$(V)g++ $(CXXFLAGS) $(LDFLAGS) -o $@ $(TEST_OBJECTS) $(LIBS) $(GMOCK_LIBS) $(LIBEXPAT)
.PHONEY: unit-test
.PHONY: unit-test
unit-test: unit-tests/unit_tests
unit-tests/unit_tests