<commit_before>include uobjects/uobjects.mk

EXTRA_DIST += $(addprefix uobjects/,$(UOBJECTS:=.uob))

uobjects_DATA = $(addprefix uobjects/,$(UOBJECTS:=$(SHLIBEXT)))
CLEANFILES += $(uobjects_DATA) $(uobjects_DATA:$(SHLIBEXT)=.la)

UMAKE_SHARED = tests/bin/umake-shared

%$(SHLIBEXT): %.uob $(UMAKE_SHARED) libuobject/libuobject.la
	$(UMAKE_SHARED) --clean --output=$@ $<
## umake has dependencies support, so it might not recompile here, in
## which case, if this was triggered because of $(UMAKE_SHARED) we
## will keep on cycling.
	touch $@

clean-local: clean-uobjects
clean-uobjects:
# If we are unlucky, umake-shared will be cleaned before we call it.
# When clean is concurrent, we might even have "rm" be given
# directories that no longer exist.  So forget about the exit status.
	-$(UMAKE_SHARED) --deep-clean ||			\
	  find . -name "_ubuild-*" -a -type d | xargs rm -rf
# This is a bug in deep-clean: we don't clean the .libs files.  But it
# is not so simple, as several builds may share a common .libs, so one
# build cannot remove this directory.
	find . -name ".libs" -a -type d | xargs rm -rf
	rm -f $(uobjects_DATA) $(uobjects_DATA:$(SHLIBEXT)=.la)

# Help to restart broken builds.
$(UMAKE_SHARED):
	$(MAKE) $(AM_MAKEFLAGS) -C tests bin/umake-shared
	$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir) sdk/umake-shared sdk/umake<commit_msg>build: don't be too picky on make clean.<commit_after>include uobjects/uobjects.mk

EXTRA_DIST += $(addprefix uobjects/,$(UOBJECTS:=.uob))

uobjects_DATA = $(addprefix uobjects/,$(UOBJECTS:=$(SHLIBEXT)))
CLEANFILES += $(uobjects_DATA) $(uobjects_DATA:$(SHLIBEXT)=.la)

UMAKE_SHARED = tests/bin/umake-shared

%$(SHLIBEXT): %.uob $(UMAKE_SHARED) libuobject/libuobject.la
	$(UMAKE_SHARED) --clean --output=$@ $<
## umake has dependencies support, so it might not recompile here, in
## which case, if this was triggered because of $(UMAKE_SHARED) we
## will keep on cycling.
	touch $@

clean-local: clean-uobjects
clean-uobjects:
# If we are unlucky, umake-shared will be cleaned before we call it.
# When clean is concurrent, we might even have "rm" be given
# directories that no longer exist.  So forget about the exit status.
	-$(UMAKE_SHARED) --deep-clean ||			\
	  find . -name "_ubuild-*" -a -type d | xargs rm -rf
# This is a bug in deep-clean: we don't clean the .libs files.  But it
# is not so simple, as several builds may share a common .libs, so one
# build cannot remove this directory.
	-find . -name ".libs" -a -type d | xargs rm -rf
	-rm -f $(uobjects_DATA) $(uobjects_DATA:$(SHLIBEXT)=.la)

# Help to restart broken builds.
$(UMAKE_SHARED):
	$(MAKE) $(AM_MAKEFLAGS) -C tests bin/umake-shared
	$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir) sdk/umake-shared sdk/umake
{'fraction_non_alphanumeric': 0.13908256880733946, 'fraction_numerical': 0.0, 'mean_word_length': 4.252408477842004, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2469086', 'n_tokens_mistral': 1002, 'n_tokens_neox': 950, 'n_words': 322}