summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2015-07-17 10:21:06 +0100
committerEmil Velikov <[email protected]>2015-09-11 19:19:30 +0100
commit0d1f600c946d17e88ef5a2377cefd6db77ea872a (patch)
treec168f11667d221458227cd8bd5c6d18cce003e3e /src/util
parent0c9f66829c24a0102ee38fc222fb8cbe5d6c177b (diff)
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 <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Matt Turner <[email protected]> (v1) (cherry picked from commit d65bd7a7be48d7805f68cd45218794f3e4590408)
Diffstat (limited to 'src/util')
-rw-r--r--src/util/Makefile.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/Makefile.am b/src/util/Makefile.am
index 8ce5ac1d775..39568aac107 100644
--- a/src/util/Makefile.am
+++ b/src/util/Makefile.am
@@ -52,5 +52,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 > $@