libintel_tools_la_SOURCES = \ drmtest.c \ drmtest.h \ igt_debugfs.c \ igt_debugfs.h \ igt_aux.c \ igt_aux.h \ igt_gt.c \ igt_gt.h \ intel_batchbuffer.c \ intel_batchbuffer.h \ intel_chipset.h \ intel_chipset.c \ intel_io.h \ intel_reg.h \ ioctl_wrappers.c \ ioctl_wrappers.h \ igt_kms.c \ igt_kms.h \ igt_fb.c \ igt_fb.h \ igt_core.c \ igt_core.h \ rendercopy.h \ media_fill.h \ intel_chipset.h \ intel_chipset.c \ $(NULL) .PHONY: version.h.tmp $(IGT_LIB_PATH)/version.h.tmp: @touch $@ @if test -d $(GPU_TOOLS_PATH)/.git; then \ if which git > /dev/null 2>&1; then \ cd $(GPU_TOOLS_PATH); \ git log -n 1 --oneline | \ sed 's/^\([^ ]*\) .*/#define IGT_GIT_SHA1 "g\1"/' ; \ else \ echo '#define IGT_GIT_SHA1 "NO-GIT"' ; \ fi \ else \ echo '#define IGT_GIT_SHA1 "NOT-GIT"' ; \ fi >> $@ $(IGT_LIB_PATH)/version.h: $(IGT_LIB_PATH)/version.h.tmp @if ! cmp -s $(IGT_LIB_PATH)/version.h.tmp $(IGT_LIB_PATH)/version.h; then \ mv $(IGT_LIB_PATH)/version.h.tmp $(IGT_LIB_PATH)/version.h ; \ else \ rm $(IGT_LIB_PATH)/version.h.tmp ; \ fi BUILT_SOURCES = $(IGT_LIB_PATH)/version.h CLEANFILES = $(IGT_LIB_PATH)/version.h $(IGT_LIB_PATH)/version.h.tmp