Skip to content

Commit 12c5457

Browse files
committed
Use Makefile error reporting for missing binaries
1 parent d768757 commit 12c5457

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

Makefile

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ composer:
1010
elif test -r composer.phar; then \
1111
php composer.phar $(COMPOSER_ARGS); \
1212
else \
13-
echo "Cannot find composer :("; \
14-
echo "Aborting."; \
15-
exit 1; \
13+
$(error Cannot find composer); \
1614
fi
1715

1816
test: composer
@@ -22,9 +20,7 @@ test: composer
2220
elif test -r phpunit.phar; then \
2321
php phpunit.phar $(PHPUNIT_ARGS); \
2422
else \
25-
echo "Cannot find phpunit :("; \
26-
echo "Aborting."; \
27-
exit 1; \
23+
$(error Cannot find phpunit); \
2824
fi
2925

3026
apigen:
@@ -34,19 +30,15 @@ apigen:
3430
elif test -r apigen.phar; then \
3531
php apigen.phar generate; \
3632
else \
37-
echo "Cannot find apigen :("; \
38-
echo "Aborting."; \
39-
exit 1; \
33+
$(error Cannot find agigen); \
4034
fi
4135

4236
mkdocs:
4337
@command -v mkdocs >/dev/null 2>&1; \
4438
if test $$? -eq 0; then \
4539
mkdocs build --clean; \
4640
else \
47-
echo "Cannot find mkdocs :("; \
48-
echo "Aborting."; \
49-
exit 1; \
41+
$(error Cannot find mkdocs); \
5042
fi
5143

5244
release/%: release-log/%

0 commit comments

Comments
 (0)