From 1d622de7971b8439866dfb2873d0b33004437431 Mon Sep 17 00:00:00 2001 From: bellrise Date: Mon, 16 May 2022 10:47:04 +0200 Subject: [PATCH] makefile: Fix PHONY targets Previously, `rose` could not be called if it was already compiled because it wasn't a PHONY target, so the source files had to be changed. --- makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/makefile b/makefile index 33e5f0b..0f0b485 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,5 @@ # -*- indent-tabs-mode: t -*- -CC ?= cc +CC ?= clang CFLAGS = `pkg-config --cflags gtk4 webkit2gtk-5.0 x11` LIBS = `pkg-config --libs gtk4 webkit2gtk-5.0 x11` OPTIONS = -Dgtk_doc=false -Dintrospection=false \ @@ -26,7 +26,8 @@ rose: strip ./rose debug: - $(CC) -fPIC -o rose *.c $(CFLAGS) $(LIBS) $(OPTIONS) -Wall -Wextra + $(CC) -fPIC -o rose *.c $(CFLAGS) $(LIBS) $(OPTIONS) -Wall -Wextra \ + -Wno-unused-variable config.h: [ -f "$@" ] || cp config.def.h $@ @@ -47,5 +48,5 @@ clean-all: clean flags: echo $(CFLAGS) | sed 's/ /\n/g' > compile_flags.txt -.PHONY: all clean clean-all install uninstall flags config.h -.SILENT: all clean clean-all install uninstall flags config.h +.PHONY: all rose clean clean-all install uninstall flags config.h +.SILENT: all rose clean clean-all install uninstall flags config.h