Commit 9a5f263e authored by Stan Seibert's avatar Stan Seibert

Fixed up selective compilation so you can't accidentally "make dist"

tarballs missing source files you decided not to compile with --disable-*.

svn path=/trunk/vorbis-tools/; revision=3568
parent c00f340d
......@@ -4,6 +4,15 @@ AUTOMAKE_OPTIONS = foreign
mans = ogg123.1
docs = ogg123rc-example
ogg123sources = audio.c buffer.c callbacks.c \
cfgfile_options.c cmdline_options.c \
file_transport.c format.c http_transport.c \
ogg123.c oggvorbis_format.c playlist.c \
status.c transport.c \
audio.h buffer.h callbacks.h compat.h \
cfgfile_options.h cmdline_options.h \
format.h ogg123.h playlist.h status.h \
transport.h
if BUILD_OGG123
......@@ -24,21 +33,14 @@ ogg123_LDADD = @SHARE_LIBS@ \
@SOCKET_LIBS@ @LIBICONV@ @CURL_LIBS@ @PTHREAD_CFLAGS@ \
@PTHREAD_LIBS@ @I18N_LIBS@
ogg123_DEPENDENCIES = @SHARE_LIBS@
ogg123_SOURCES = audio.c buffer.c callbacks.c \
cfgfile_options.c cmdline_options.c \
file_transport.c format.c http_transport.c \
ogg123.c oggvorbis_format.c playlist.c \
status.c transport.c \
audio.h buffer.h callbacks.h compat.h \
cfgfile_options.h cmdline_options.h \
format.h ogg123.h playlist.h status.h transport.h
ogg123_SOURCES = $(ogg123sources)
man_MANS = $(mans)
doc_DATA = $(docs)
endif
EXTRA_DIST = $(mans) $(docs)
EXTRA_DIST = $(ogg123sources) $(mans) $(docs)
debug:
......
......@@ -3,6 +3,7 @@
AUTOMAKE_OPTIONS = foreign
mans = oggdec.1
oggdecsources = oggdec.c
if BUILD_OGGDEC
......@@ -17,7 +18,7 @@ INCLUDES = @OGG_CFLAGS@ @VORBIS_CFLAGS@ @SHARE_CFLAGS@
oggdec_LDADD = @LIBICONV@ @SHARE_LIBS@ @VORBISFILE_LIBS@ @VORBIS_LIBS@ @OGG_LIBS@
oggdec_DEPENDENCIES = @SHARE_LIBS@
oggdec_SOURCES = oggdec.c
oggdec_SOURCES = $(oggdecsources)
man_MANS = $(mans)
mandir = @MANDIR@
......@@ -25,7 +26,7 @@ mandir = @MANDIR@
endif
EXTRA_DIST = $(mans)
EXTRA_DIST = $(oggdecsources) $(mans)
debug:
$(MAKE) all CFLAGS="@DEBUG@"
......
......@@ -4,6 +4,9 @@ AUTOMAKE_OPTIONS = foreign
SUBDIRS = man
oggencsources = oggenc.c audio.c encode.c platform.c \
audio.h encode.h platform.h resample.c resample.h
if BUILD_OGGENC
datadir = @datadir@
......@@ -19,11 +22,12 @@ oggenc_LDADD = @SHARE_LIBS@ \
@LIBICONV@ @I18N_LIBS@
oggenc_DEPENDENCIES = @SHARE_LIBS@
oggenc_SOURCES = oggenc.c audio.c encode.c platform.c \
audio.h encode.h platform.h resample.c resample.h
oggenc_SOURCES = $(oggencsources)
endif
EXTRA_DIST = $(oggencsources)
debug:
$(MAKE) all CFLAGS="@DEBUG@"
......
......@@ -3,6 +3,7 @@
AUTOMAKE_OPTIONS = foreign
mans = ogginfo.1
ogginfosources = ogginfo2.c
if BUILD_OGGINFO
......@@ -19,11 +20,11 @@ INCLUDES = @SHARE_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@ @I18N_CFLAGS@
ogginfo_LDADD = @SHARE_LIBS@ @VORBIS_LIBS@ @OGG_LIBS@ @LIBICONV@ @I18N_LIBS@
ogginfo_DEPENDENCIES = @SHARE_LIBS@
ogginfo_SOURCES = ogginfo2.c
ogginfo_SOURCES = $(ogginfosources)
endif
EXTRA_DIST = $(mans)
EXTRA_DIST = $(ogginfosources) $(mans)
debug:
$(MAKE) all CFLAGS="@DEBUG@"
......
......@@ -3,6 +3,7 @@
AUTOMAKE_OPTIONS = foreign
mans = vcut.1
vcutsources = vcut.c vcut.h
if BUILD_VCUT
......@@ -18,11 +19,11 @@ INCLUDES = @OGG_CFLAGS@ @VORBIS_CFLAGS@ @SHARE_CFLAGS@ @I18N_CFLAGS@
vcut_LDADD = @VORBIS_LIBS@ @OGG_LIBS@ @I18N_LIBS@
vcut_SOURCES = vcut.c vcut.h
vcut_SOURCES = $(vcutsources)
endif
EXTRA_DIST = $(mans)
EXTRA_DIST = $(vcutsources) $(mans)
debug:
$(MAKE) all CFLAGS="@DEBUG@"
......
......@@ -3,6 +3,7 @@
AUTOMAKE_OPTIONS = foreign
mans = vorbiscomment.1
vorbiscommentsources = vcedit.c vcedit.h vcomment.c
if BUILD_VORBISCOMMENT
......@@ -19,11 +20,11 @@ INCLUDES = @SHARE_CFLAGS@ @I18N_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@
vorbiscomment_LDADD = @SHARE_LIBS@ @VORBIS_LIBS@ @OGG_LIBS@ @LIBICONV@ @I18N_LIBS@
vorbiscomment_DEPENDENCIES = @SHARE_LIBS@
vorbiscomment_SOURCES = vcedit.c vcedit.h vcomment.c
vorbiscomment_SOURCES = $(vorbiscommentsources)
endif
EXTRA_DIST = $(mans)
EXTRA_DIST = $(vorbiscommentsources) $(mans)
debug:
$(MAKE) all CFLAGS="@DEBUG@"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment