Makefile.am 1.11 KB
Newer Older
1 2
## Process this with automake to create Makefile.in

3 4
EXTRA_DIST = icecast.xml.in icecast_minimal.xml.in icecast_shoutcast_compat.xml.in
DISTCLEANFILES = icecast.xml.dist icecast_minimal.xml.dist icecast_shoutcast_compat.xml.dist
5

6
docdir = $(datadir)/$(PACKAGE)/doc
7
doc_DATA = icecast.xml.dist icecast_minimal.xml.dist icecast_shoutcast_compat.xml.dist
8 9 10 11 12

install-data-hook:
	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
	test -f $(DESTDIR)$(sysconfdir)/icecast.xml || \
	$(INSTALL_DATA) icecast.xml.dist $(DESTDIR)$(sysconfdir)/icecast.xml
13 14 15 16 17

edit = sed -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
	-e 's,@localstatedir\@,$(localstatedir),g' \
	-e 's,@PACKAGE\@,$(PACKAGE),g'

18 19
icecast.xml.dist: $(srcdir)/icecast.xml.in
	$(edit) $(srcdir)/icecast.xml.in > icecast.xml.dist
20

21 22 23 24 25 26
icecast_minimal.xml.dist: $(srcdir)/icecast_minimal.xml.in
	$(edit) $(srcdir)/icecast_minimal.xml.in > icecast_minimal.xml.dist

icecast_shoutcast_compat.xml.dist: $(srcdir)/icecast_shoutcast_compat.xml.in
	$(edit) $(srcdir)/icecast_shoutcast_compat.xml.in > icecast_shoutcast_compat.xml.dist

27
debug:
Michael Smith's avatar
Michael Smith committed
28
	$(MAKE) all CFLAGS="@DEBUG@"
29 30

profile:
Michael Smith's avatar
Michael Smith committed
31
	$(MAKE) all CFLAGS="@PROFILE@"
32