aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-12-30 09:13:56 +1100
committerNeil <nyamatongwe@gmail.com>2019-12-30 09:13:56 +1100
commitf142bb942d54b1387dc887220072a3f798a285a6 (patch)
tree62b0b2f63ef05917e5832827cfcabef7c4ae3384 /gtk
parente384df880a1991212a6d38702dfbcf9d3c74bb0d (diff)
downloadscintilla-mirror-f142bb942d54b1387dc887220072a3f798a285a6.tar.gz
Use pattern rules instead of suffix rules as they are clearer.
Add a .PHONY target to avoid possible failure caused by file with same name.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk/makefile b/gtk/makefile
index 54c9c0472..cde17ea80 100644
--- a/gtk/makefile
+++ b/gtk/makefile
@@ -7,6 +7,8 @@
# Builds for GTK+ 2 and 3. GTK 3 requires GTK3=1 on command line.
# Also works with ming32-make on Windows.
+.PHONY: all clean analyze depend
+
.SUFFIXES: .cxx .c .o .h .a .list
srcdir ?= .
@@ -84,17 +86,17 @@ all: $(COMPLIB)
clean:
$(DEL) *.o $(call normalize,$(COMPLIB)) *.plist
-.cxx.o:
+%.o: %.cxx
$(CXX) $(CXX_ALL_FLAGS) $(CXXFLAGS) -c $<
-.c.o:
+%.o: %.c
$(CC) $(DEFINES) $(INCLUDES) $(CONFIG_FLAGS) $(BASE_FLAGS) $(CFLAGS) -w -c $<
GLIB_GENMARSHAL = glib-genmarshal
GLIB_GENMARSHAL_FLAGS = --prefix=scintilla_marshal
-.list.h:
+%.h: %.list
$(GLIB_GENMARSHAL) --header $(GLIB_GENMARSHAL_FLAGS) $< > $@
-.list.c:
+%.c: %.list
$(GLIB_GENMARSHAL) --body $(GLIB_GENMARSHAL_FLAGS) $< > $@
analyze: