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:
parent
58932060cc
commit
1d622de797
9
makefile
9
makefile
|
@ -1,5 +1,5 @@
|
||||||
# -*- indent-tabs-mode: t -*-
|
# -*- indent-tabs-mode: t -*-
|
||||||
CC ?= cc
|
CC ?= clang
|
||||||
CFLAGS = `pkg-config --cflags gtk4 webkit2gtk-5.0 x11`
|
CFLAGS = `pkg-config --cflags gtk4 webkit2gtk-5.0 x11`
|
||||||
LIBS = `pkg-config --libs gtk4 webkit2gtk-5.0 x11`
|
LIBS = `pkg-config --libs gtk4 webkit2gtk-5.0 x11`
|
||||||
OPTIONS = -Dgtk_doc=false -Dintrospection=false \
|
OPTIONS = -Dgtk_doc=false -Dintrospection=false \
|
||||||
|
@ -26,7 +26,8 @@ rose:
|
||||||
strip ./rose
|
strip ./rose
|
||||||
|
|
||||||
debug:
|
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:
|
config.h:
|
||||||
[ -f "$@" ] || cp config.def.h $@
|
[ -f "$@" ] || cp config.def.h $@
|
||||||
|
@ -47,5 +48,5 @@ clean-all: clean
|
||||||
flags:
|
flags:
|
||||||
echo $(CFLAGS) | sed 's/ /\n/g' > compile_flags.txt
|
echo $(CFLAGS) | sed 's/ /\n/g' > compile_flags.txt
|
||||||
|
|
||||||
.PHONY: all clean clean-all install uninstall flags config.h
|
.PHONY: all rose clean clean-all install uninstall flags config.h
|
||||||
.SILENT: all clean clean-all install uninstall flags config.h
|
.SILENT: all rose clean clean-all install uninstall flags config.h
|
||||||
|
|
Loading…
Reference in New Issue
Block a user