From 7067fb9532b3fa6b058afd7f37cd2748e03bdc6e Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Fri, 27 Oct 2023 19:53:19 +0200 Subject: [PATCH] Order targets by importance Now bare make does the reasonable thing. --- Makefile | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/Makefile b/Makefile index 71173af..92dd1c4 100644 --- a/Makefile +++ b/Makefile @@ -8,33 +8,6 @@ DIST-EXTRA-SRC = LICENSE-GPL2 LICENSE-MPL2 BLUEPRINTS = $(addprefix ui/,about.blp) UIDEFS = $(addsuffix .ui,$(basename $(BLUEPRINTS))) -$(UIDEFS): %.ui: %.blp - blueprint-compiler compile --output $@ $< - -.PHONY: generate -generate: - npm run generate:gir-types - -.PHONY: format -format: - npm run format -- --write - -.PHONY: lint -lint: - npm run lint - -.PHONY: check -check: lint - npm run format -- --check - -.PHONY: fix -fix: format - npm run lint -- --fix - -.PHONY: compile -compile: $(UIDEFS) - npm run compile - .PHONY: dist dist: compile mkdir -p ./dist/ @@ -73,3 +46,30 @@ uninstall-system: rm -rf \ $(DESTDIR)/$(PREFIX)/share/gnome-shell/extensions/$(UUID) \ $(DESTDIR)/$(PREFIX)/share/glib-2.0/schemas/org.gnome.shell.extensions.typescript-template.gschema.xml + +.PHONY: compile +compile: $(UIDEFS) + npm run compile + +.PHONY: generate +generate: + npm run generate:gir-types + +.PHONY: format +format: + npm run format -- --write + +.PHONY: lint +lint: + npm run lint + +.PHONY: check +check: lint + npm run format -- --check + +.PHONY: fix +fix: format + npm run lint -- --fix + +$(UIDEFS): %.ui: %.blp + blueprint-compiler compile --output $@ $<