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

AUTOMAKE_OPTIONS = foreign

5 6
EXTRA_DIST = icecast.xml.in

7 8 9 10 11 12 13
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
14 15 16 17 18

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

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

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

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