<commit_before># swc: Makefile

.PHONY: all
all: build

# Defaults for config.mk
PREFIX          ?= /usr/local
BINDIR          ?= $(PREFIX)/bin
LIBDIR          ?= $(PREFIX)/lib
INCLUDEDIR      ?= $(PREFIX)/include
DATADIR         ?= $(PREFIX)/share
PKGCONFIGDIR    ?= $(LIBDIR)/pkgconfig

OBJCOPY         ?= objcopy
PKG_CONFIG      ?= pkg-config
WAYLAND_SCANNER ?= wayland-scanner

VERSION_MAJOR   := 0
VERSION_MINOR   := 0
VERSION         := $(VERSION_MAJOR).$(VERSION_MINOR)

TARGETS         := swc.pc
SUBDIRS         := launch libswc protocol cursor example
CLEAN_FILES     := $(TARGETS)

include config.mk

# Dependencies
PACKAGES :=           \
    libdrm            \
    libevdev          \
    pixman-1          \
    wayland-server    \
    wayland-protocols \
    wld               \
    xkbcommon

ifeq ($(ENABLE_XWAYLAND),1)
PACKAGES +=         \
    xcb             \
    xcb-composite   \
    xcb-ewmh        \
    xcb-icccm
endif

ifeq ($(ENABLE_LIBINPUT),1)
PACKAGES += libinput libudev
endif

libinput_CONSTRAINTS        := --atleast-version=0.4
wayland-server_CONSTRAINTS  := --atleast-version=1.6.0

define check
    ifeq ($$(origin $(1)_EXISTS),undefined)
        $(1)_EXISTS = $$(shell $$(PKG_CONFIG) --exists $$($(1)_CONSTRAINTS) $(1) && echo yes)
    endif
    ifneq ($$($(1)_EXISTS),yes)
        $$(error Could not find package $(1) $$($(1)_CONSTRAINTS))
    endif
endef

$(foreach pkg,$(PACKAGES),$(eval $(call check,$(pkg))))
<commit_msg>Update Makefile for recent libinput change<commit_after># swc: Makefile

.PHONY: all
all: build

# Defaults for config.mk
PREFIX          ?= /usr/local
BINDIR          ?= $(PREFIX)/bin
LIBDIR          ?= $(PREFIX)/lib
INCLUDEDIR      ?= $(PREFIX)/include
DATADIR         ?= $(PREFIX)/share
PKGCONFIGDIR    ?= $(LIBDIR)/pkgconfig

OBJCOPY         ?= objcopy
PKG_CONFIG      ?= pkg-config
WAYLAND_SCANNER ?= wayland-scanner

VERSION_MAJOR   := 0
VERSION_MINOR   := 0
VERSION         := $(VERSION_MAJOR).$(VERSION_MINOR)

TARGETS         := swc.pc
SUBDIRS         := launch libswc protocol cursor example
CLEAN_FILES     := $(TARGETS)

include config.mk

# Dependencies
PACKAGES :=           \
    libdrm            \
    libinput          \
    pixman-1          \
    wayland-server    \
    wayland-protocols \
    wld               \
    xkbcommon

ifeq ($(ENABLE_XWAYLAND),1)
PACKAGES +=         \
    xcb             \
    xcb-composite   \
    xcb-ewmh        \
    xcb-icccm
endif

ifeq ($(ENABLE_LIBUDEV),1)
PACKAGES += libudev
endif

libinput_CONSTRAINTS        := --atleast-version=0.4
wayland-server_CONSTRAINTS  := --atleast-version=1.6.0

define check
    ifeq ($$(origin $(1)_EXISTS),undefined)
        $(1)_EXISTS = $$(shell $$(PKG_CONFIG) --exists $$($(1)_CONSTRAINTS) $(1) && echo yes)
    endif
    ifneq ($$($(1)_EXISTS),yes)
        $$(error Could not find package $(1) $$($(1)_CONSTRAINTS))
    endif
endef

$(foreach pkg,$(PACKAGES),$(eval $(call check,$(pkg))))

{'fraction_non_alphanumeric': 0.13980318968442484, 'fraction_numerical': 0.01153715643026807, 'mean_word_length': 2.2646733111849393, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6548614', 'n_tokens_mistral': 1084, 'n_tokens_neox': 1029, 'n_words': 208}