ac: automake: rework sid_tables.h generation
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 12 Jan 2017 17:34:15 +0000 (17:34 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 12 Jan 2017 19:29:28 +0000 (19:29 +0000)
Drop $(srcdir)/ prefix analogous to before the file (and rule) movement
and move it outside of the NEED_RADEON_LLVM conditional.

Otherwise the build may fail as below.

make[3]: *** No rule to make target 'common/sid_tables.h', needed by 'distdir'.  Stop.

Fixes: b838f642371 "ac/debug: Move sid_tables.h generation to common
code."
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/amd/Makefile.am
src/amd/Makefile.common.am

index 0a8456d1e4d5f2087094c5922ac9bf4b1250b9c0..7d191af4431b21f561b9390465b99623507d0183 100644 (file)
@@ -23,6 +23,6 @@ include Makefile.sources
 
 noinst_LTLIBRARIES =
 
-EXTRA_DIST = $(COMMON_HEADER_FILES) $(srcdir)/common/sid_tables.py
+EXTRA_DIST = $(COMMON_HEADER_FILES) common/sid_tables.py
 include Makefile.addrlib.am
 include Makefile.common.am
index 533ad17de59fe68bcb4e3d6a4a1f5f1b8cdbfe19..b5fce2b4e079e42ac51662f6d8f81230e53e008d 100644 (file)
@@ -62,9 +62,9 @@ common_libamd_common_la_SOURCES = \
 if HAVE_RADEON_VULKAN
 common_libamd_common_la_SOURCES += $(AMD_NIR_FILES)
 endif
+endif
 
-$(srcdir)/common/sid_tables.h: $(srcdir)/common/sid_tables.py $(srcdir)/common/sid.h
+common/sid_tables.h: $(srcdir)/common/sid_tables.py $(srcdir)/common/sid.h
        $(AM_V_GEN) $(PYTHON2) $(srcdir)/common/sid_tables.py $(srcdir)/common/sid.h > $@
 
 BUILT_SOURCES = $(AMD_GENERATED_FILES)
-endif