From: Emil Velikov Date: Fri, 17 Jul 2015 09:21:06 +0000 (+0100) Subject: util: automake: rework the format_srgb.c rule X-Git-Tag: upstream/17.1.0~16258 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d65bd7a7be48d7805f68cd45218794f3e4590408;p=platform%2Fupstream%2Fmesa.git util: automake: rework the format_srgb.c rule A handful of changes/cleanups paving the way to bmake support: - Remove optional $(srcdir)/ prefix for files in the prereq list. - Drop the space after the AM_V_GEN variable. - Using $< in a non-suffix rule is a GNU make idiom. - Use $(@D) over $(dir $@). The latter is a POSIX standard. v2: Cosmetic tweaks in the commit summary. Cc: 11.0 Signed-off-by: Emil Velikov Reviewed-by: Matt Turner (v1) --- diff --git a/src/util/Makefile.am b/src/util/Makefile.am index 761023d..e05a2c5 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am @@ -55,5 +55,7 @@ BUILT_SOURCES = $(MESA_UTIL_GENERATED_FILES) CLEANFILES = $(BUILT_SOURCES) EXTRA_DIST = format_srgb.py SConscript -format_srgb.c: $(srcdir)/format_srgb.py - $(AM_V_GEN) $(PYTHON2) $< > $@ +PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS) + +format_srgb.c: format_srgb.py + $(PYTHON_GEN) $(srcdir)/format_srgb.py > $@