Makefile.am 696 Bytes
Newer Older
1 2 3 4
## Process this with automake to create Makefile.in

AUTOMAKE_OPTIONS = foreign

5
EXTRA_DIST = icecast.xml.in
Karl Heyes's avatar
Karl Heyes committed
6
DISTCLEANFILES = icecast.xml.dist
7

8 9 10 11 12 13 14
docdir = $(datadir)/$(PACKAGE)/doc
doc_DATA = icecast.xml.dist

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

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

20 21
icecast.xml.dist: $(srcdir)/icecast.xml.in
	$(edit) $(srcdir)/icecast.xml.in > icecast.xml.dist
22 23

debug:
Michael Smith's avatar
Michael Smith committed
24
	$(MAKE) all CFLAGS="@DEBUG@"
25 26

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