NULL =

LIBVLC_SAMPLES = \
	libvlc/gtk_player.c \
	libvlc/libvlc_DVD_ripper.c \
	libvlc/QtPlayer/LICENSE \
	libvlc/QtPlayer/main.cpp \
	libvlc/QtPlayer/player.cpp \
	libvlc/QtPlayer/player.h \
	libvlc/QtPlayer/QtVLC.pro \
	libvlc/vlc-thumb.c \
	libvlc/wx_player.cpp \
	libvlc/win_player.c \
	libvlc/CMakeLists.txt \
	$(NULL)

nobase_doc_DATA = $(LIBVLC_SAMPLES)

doc_DATA = \
	fortunes.txt \
	$(NULL)

CHANGELOGS = \
	ChangeLog-1999 \
	ChangeLog-2000 \
	ChangeLog-2001 \
	ChangeLog-2002 \
	ChangeLog-2003 \
	ChangeLog-2004 \
	ChangeLog-2005 \
	ChangeLog-2006 \
	ChangeLog-2007 \
	ChangeLog-2008 \
	ChangeLog-2009 \
	ChangeLog-2010 \
	ChangeLog-2011 \
	ChangeLog-2012 \
	ChangeLog-2013 \
	ChangeLog-2014 \
	ChangeLog-2015 \
	ChangeLog-2016 \
	ChangeLog-2017 \
	ChangeLog-2018 \
	ChangeLog-2019 \
	ChangeLog-2020 \
	ChangeLog-2021 \
	ChangeLog-2022 \
	ChangeLog-2023 \
	ChangeLog-2024 \
	ChangeLog-2025 \
	$(NULL)

man1_MANS = \
	   vlc.1 \
	   vlc-wrapper.1

EXTRA_DIST = \
	$(CHANGELOGS) \
	$(man1_MANS) \
	$(LIBVLC_SAMPLES) \
	fortunes.txt \
	release-howto.txt \
	Doxyfile.in \
	lirc/example.lircrc \
	skins/skins-howto.txt \
	skins/events-howto.txt \
	skins/curve_maker/Bezier.bas \
	skins/curve_maker/Bezier.frm \
	skins/curve_maker/Bezier.frx \
	skins/curve_maker/bezier.vbp \
	skins/curve_maker/Bezier.vbw \
	strings.txt \
	translations.txt \
	demo.sh \
	$(NULL)

DISTCLEANFILES = Doxyfile
MAINTAINERCLEANFILES = $(CHANGELOGS)

Doxyfile: Doxyfile.in $(top_builddir)/config.status
	cd $(top_builddir) && $(SHELL) ./config.status --file=$(subdir)/$@

doc: Doxyfile
	doxygen

$(CHANGELOGS): Makefile.am
	if test -e "$(top_srcdir)/.git"; then \
		y="$@"; y="$${y##ChangeLog-}" ; \
		git --git-dir="$(top_srcdir)/.git" log \
			--since="$$y-01-01" \
			--until="$$y-12-31 23:00:00 -0100" \
			> "$@" ; \
	fi

# This one needs to be rebuilt all the time :)
.PHONY: ChangeLog-2021 changelogs doc

changelogs: $(CHANGELOGS)

#distclean-hook:
#	test "$(srcdir)" = "$(builddir)" || rm -f -- $(CHANGELOGS)
