Add explicit .PHONY rules

Mark all rules that doesn't depend on files as PHONY to avoid any future conflict.
pull/245/head
Yohann Boniface 2022-11-23 20:47:52 +01:00 committed by GitHub
parent 25c46098ab
commit a2a2132094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -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