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