Add explicit .PHONY rules
Mark all rules that doesn't depend on files as PHONY to avoid any future conflict.pull/245/head
parent
25c46098ab
commit
a2a2132094
9
Makefile
9
Makefile
|
@ -19,6 +19,8 @@ npm-init:
|
|||
npm-update:
|
||||
npm update
|
||||
|
||||
.PHONY: dev-setup exiftool php-cs-fixer php-lint npm-init npm-update
|
||||
|
||||
# Building
|
||||
build-js:
|
||||
npm run dev
|
||||
|
@ -33,6 +35,8 @@ patch-external:
|
|||
watch-js:
|
||||
npm run watch
|
||||
|
||||
.PHONY: build-js patch-external watch-js
|
||||
|
||||
# Testing
|
||||
test:
|
||||
npm run test
|
||||
|
@ -43,6 +47,8 @@ test-watch:
|
|||
test-coverage:
|
||||
npm run test:coverage
|
||||
|
||||
.PHONY: test test-watch test-coverage
|
||||
|
||||
# Linting
|
||||
lint:
|
||||
npm run lint
|
||||
|
@ -50,6 +56,8 @@ lint:
|
|||
lint-fix:
|
||||
npm run lint:fix
|
||||
|
||||
.PHONY: lint lint-fix
|
||||
|
||||
# Cleaning
|
||||
clean:
|
||||
rm -f js/*
|
||||
|
@ -57,3 +65,4 @@ clean:
|
|||
clean-dev:
|
||||
rm -rf node_modules
|
||||
|
||||
.PHONY: clean clean-dev
|
||||
|
|
Loading…
Reference in New Issue