Makefile.am 1.47 KB
Newer Older
1 2
NULL =

3 4 5 6 7
docdir = $(datadir)/doc/@PACKAGE@

doc_DATA = \
	bugreport-howto.txt \
	fortunes.txt \
8
	intf-cdda.txt \
9
	intf-vcd.txt \
10 11
	$(NULL)

12
CHANGELOGS = \
Sam Hocevar's avatar
Sam Hocevar committed
13 14 15 16
	ChangeLog-1999 \
	ChangeLog-2000 \
	ChangeLog-2001 \
	ChangeLog-2002 \
17
	ChangeLog-2003 \
18
	ChangeLog-2004 \
19
	ChangeLog-2005 \
20 21
	ChangeLog-2006 \
	ChangeLog-2007 \
22
	ChangeLog-2008 \
23 24 25 26
	$(NULL)

EXTRA_DIST = \
	$(CHANGELOGS) \
27
	vlc.1 \
28
	vlc-wrapper.1 \
29 30 31
	vlc-config.1 \
	bugreport-howto.txt \
	fortunes.txt \
32
	intf-cdda.txt \
33
	intf-vcd.txt \
34
	release-howto.txt \
35
	arm-crosscompile-howto.sgml \
36
	Doxyfile.in \
37
	Configure.help \
Alexis de Lattre's avatar
Alexis de Lattre committed
38
	lirc/example.lircrc \
39 40
	skins/skins-howto.txt \
	skins/events-howto.txt \
41 42 43 44 45
	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 \
46 47
	strings.txt \
	translations.txt \
48
	win32/Cross-Compile-Howto.txt \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
49
	demo.sh \
50
	$(NULL)
51

52 53 54 55 56 57 58
DISTCLEANFILES = $(CHANGELOGS) Doxyfile

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

doc: Doxyfile
	doxygen
59

60
$(CHANGELOGS): Makefile.am
61
	if test -d "$(top_srcdir)/.git"; then \
62
		y="$@"; y="$${y##ChangeLog-}" ; \
63 64 65 66 67
		git --git-dir="$(top_srcdir)/.git" log \
			--since="$$y-01-01" \
			--until="$$y-12-31 23:00:00 -0100" \
			> "$@" ; \
	fi
68

69
# This one needs to be rebuilt all the time :)
70
.PHONY: ChangeLog-2008 changelogs doc
71 72 73

changelogs: $(CHANGELOGS)

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