<commit_before># The default target of this Makefile is:
all:

prefix?=/usr/local
exec_prefix?=$(prefix)
bindir?=$(exec_prefix)/bin
libexecdir?=$(exec_prefix)/libexec
libdir?=$(exec_prefix)/lib
datarootdir?=$(prefix)/share
mandir?=$(datarootdir)/man
man1dir?=$(mandir)/man1
sysconfdir?=$(prefix)/etc

ifeq ($(prefix),$(HOME))
  plugindir?=$(HOME)/.gstreamer-0.10/plugins
else
  plugindir?=$(libdir)/gstreamer-0.10
endif

INSTALL?=install
TAR?=tar  # Must be GNU tar

dependencies = gstreamer-0.10
dependencies += gstreamer-base-0.10
dependencies += gstreamer-video-0.10
dependencies += opencv

# CFLAGS and LDFLAGS are for the user to override from the command line.
CFLAGS ?= -g -O2 -Werror
extra_cflags = -fPIC '-DPACKAGE="stb-tester"'
extra_cflags += $(shell pkg-config --cflags $(dependencies))
extra_ldflags = $(shell pkg-config --libs $(dependencies))

OBJS = gst/gst-stb-tester.o
OBJS += gst/gstmotiondetect.o
OBJS += gst/gsttemplatematch.o

# Generate version from 'git describe' when in git repository, and from
# VERSION file included in the dist tarball otherwise.
generate_version := $(shell \
	GIT_DIR=.git git describe --always --dirty > VERSION.now 2>/dev/null && \
	{ cmp VERSION.now VERSION 2>/dev/null || mv VERSION.now VERSION; }; \
	rm -f VERSION.now)
VERSION?=$(shell cat VERSION)

.DELETE_ON_ERROR:


all: stbt stbt.1 gst/libgst-stb-tester.so

stbt: stbt.in .stbt-prefix
	sed -e 's,@VERSION@,$(VERSION),g' \
	    -e 's,@LIBEXECDIR@,$(libexecdir),g' \
	    -e 's,@SYSCONFDIR@,$(sysconfdir),g' $< > $@

install: stbt stbt.1 gst/libgst-stb-tester.so
	$(INSTALL) -m 0755 -d \
	    $(DESTDIR)$(bindir) \
	    $(DESTDIR)$(libexecdir)/stbt \
	    $(DESTDIR)$(plugindir) \
	    $(DESTDIR)$(man1dir) \
	    $(DESTDIR)$(sysconfdir)/stbt \<commit_msg>Makefile: Rebuild stbt when VERSION changes<commit_after># The default target of this Makefile is:
all:

prefix?=/usr/local
exec_prefix?=$(prefix)
bindir?=$(exec_prefix)/bin
libexecdir?=$(exec_prefix)/libexec
libdir?=$(exec_prefix)/lib
datarootdir?=$(prefix)/share
mandir?=$(datarootdir)/man
man1dir?=$(mandir)/man1
sysconfdir?=$(prefix)/etc

ifeq ($(prefix),$(HOME))
  plugindir?=$(HOME)/.gstreamer-0.10/plugins
else
  plugindir?=$(libdir)/gstreamer-0.10
endif

INSTALL?=install
TAR?=tar  # Must be GNU tar

dependencies = gstreamer-0.10
dependencies += gstreamer-base-0.10
dependencies += gstreamer-video-0.10
dependencies += opencv

# CFLAGS and LDFLAGS are for the user to override from the command line.
CFLAGS ?= -g -O2 -Werror
extra_cflags = -fPIC '-DPACKAGE="stb-tester"'
extra_cflags += $(shell pkg-config --cflags $(dependencies))
extra_ldflags = $(shell pkg-config --libs $(dependencies))

OBJS = gst/gst-stb-tester.o
OBJS += gst/gstmotiondetect.o
OBJS += gst/gsttemplatematch.o

# Generate version from 'git describe' when in git repository, and from
# VERSION file included in the dist tarball otherwise.
generate_version := $(shell \
	GIT_DIR=.git git describe --always --dirty > VERSION.now 2>/dev/null && \
	{ cmp VERSION.now VERSION 2>/dev/null || mv VERSION.now VERSION; }; \
	rm -f VERSION.now)
VERSION?=$(shell cat VERSION)

.DELETE_ON_ERROR:


all: stbt stbt.1 gst/libgst-stb-tester.so

stbt: stbt.in .stbt-prefix VERSION
	sed -e 's,@VERSION@,$(VERSION),g' \
	    -e 's,@LIBEXECDIR@,$(libexecdir),g' \
	    -e 's,@SYSCONFDIR@,$(sysconfdir),g' $< > $@

install: stbt stbt.1 gst/libgst-stb-tester.so
	$(INSTALL) -m 0755 -d \
	    $(DESTDIR)$(bindir) \
	    $(DESTDIR)$(libexecdir)/stbt \
	    $(DESTDIR)$(plugindir) \
	    $(DESTDIR)$(man1dir) \
	    $(DESTDIR)$(sysconfdir)/stbt \
{'fraction_non_alphanumeric': 0.16872543514879282, 'fraction_numerical': 0.015160022459292532, 'mean_word_length': 4.390317700453858, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6968638', 'n_tokens_mistral': 1437, 'n_tokens_neox': 1383, 'n_words': 292}