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.
This commit is contained in:
bellrise 2022-05-16 10:47:04 +02:00
parent 58932060cc
commit 1d622de797

View File

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