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:
|
||||||
npm update
|
npm update
|
||||||
|
|
||||||
|
.PHONY: dev-setup exiftool php-cs-fixer php-lint npm-init npm-update
|
||||||
|
|
||||||
# Building
|
# Building
|
||||||
build-js:
|
build-js:
|
||||||
npm run dev
|
npm run dev
|
||||||
|
@ -33,6 +35,8 @@ patch-external:
|
||||||
watch-js:
|
watch-js:
|
||||||
npm run watch
|
npm run watch
|
||||||
|
|
||||||
|
.PHONY: build-js patch-external watch-js
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
test:
|
test:
|
||||||
npm run test
|
npm run test
|
||||||
|
@ -43,6 +47,8 @@ test-watch:
|
||||||
test-coverage:
|
test-coverage:
|
||||||
npm run test:coverage
|
npm run test:coverage
|
||||||
|
|
||||||
|
.PHONY: test test-watch test-coverage
|
||||||
|
|
||||||
# Linting
|
# Linting
|
||||||
lint:
|
lint:
|
||||||
npm run lint
|
npm run lint
|
||||||
|
@ -50,6 +56,8 @@ lint:
|
||||||
lint-fix:
|
lint-fix:
|
||||||
npm run lint:fix
|
npm run lint:fix
|
||||||
|
|
||||||
|
.PHONY: lint lint-fix
|
||||||
|
|
||||||
# Cleaning
|
# Cleaning
|
||||||
clean:
|
clean:
|
||||||
rm -f js/*
|
rm -f js/*
|
||||||
|
@ -57,3 +65,4 @@ clean:
|
||||||
clean-dev:
|
clean-dev:
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
|
|
||||||
|
.PHONY: clean clean-dev
|
||||||
|
|
Loading…
Reference in New Issue