view Makefile.am @ 597:ffaf0f200e14

Make ChangeLog re-generation conditional.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 22 Mar 2007 22:24:03 +0000
parents 18b34952131d
children 1f7a4ce04cb9
line wrap: on
line source

###
### Makefile.am for XMMS-SID
###
# Require latest automake
AUTOMAKE_OPTIONS = 1.9

PACKAGE = @PACKAGE@
VERSION = @VERSION@

themetune = Kummatti_City.sid
libxmmssiddir = $(pkgdatadir)
libxmmssid_DATA = $(themetune)

SUBDIRS = po

# Personal XMMS directory in user's home
USERHOMEPREFIX = ~/.xmms/Plugins

# All the rest of the distributed files
EXTRA_DIST = mkinstalldirs 		\
	FAQ				\
	BUGS				\
	THANKS				\
	ChangeLog.old			\
	bootstrap.sh			\
	xmms-sid.glade			\
	xmms-sid.spec.in		\
	xmms-sid.spec			\
	xmms-1.2.10-songpos.patch	\
	src/xmms-sid-logo.xpm		\
	Kummatti_City.sid


# Update changelog
update:
	if test -e ".svn"; then svn update; fi

.changelog: update
	if test -e ".svn"; then svn2cl --group-by-day --include-rev --strip-prefix xmms-sid/trunk/; fi
	touch $@

ChangeLog: .changelog

###
### Install/uninstall-targets for single user
###
install-user: $(lib_LTLIBRARIES)
	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
	  if test -f $$p; then \
	    f="`echo $$p | sed -e 's|^.*/||'`"; \
	    echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(USERHOMEPREFIX)/$$f"; \
	    $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(USERHOMEPREFIX)/$$f; \
	  else :; fi; \
	done

uninstall-user:
	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
	    p="`echo $$p | sed -e 's|^.*/||'`"; \
	  echo " $(LIBTOOL) --mode=uninstall rm -f $(USERHOMEPREFIX)/$$p"; \
	  $(LIBTOOL) --mode=uninstall rm -f $(USERHOMEPREFIX)/$$p; \
	done


###
### Source targets
###
# Generated libraries
lib_LTLIBRARIES = libxmmssid.la

# Generals
AM_CFLAGS = -W -Wall -D_REENTRANT @XMMS_CFLAGS@ @SIDPLAY1_INCLUDES@	\
		@SIDPLAY2_INCLUDES@ @BUILDERS_INCLUDES@			\
		-DTHEMETUNE_FILE="\"$(pkgdatadir)/$(themetune)\""	\
		-DLOCALEDIR="\"$(localedir)\""

AM_CXXFLAGS = $(AM_CFLAGS)

libxmmssid_la_LDFLAGS = -module -avoid-version @BUILDERS_LDFLAGS@
libxmmssid_la_LIBADD  = @XMMS_LIBS@ @SIDPLAY1_LDADD@ @SIDPLAY2_LDADD@ @RESID_LDADD@ @HARDSID_LDADD@

# Glade-generated sources
update-glade: xmms-sid.glade
	glade -w $<
	touch $@

#src/xs_genui.c src/xs_genui.h src/xs_glade.c src/xs_glade.h src/xs_interface.c src/xs_interface.h: update-glade


# Plugin sources
libxmmssid_la_SOURCES =	\
	src/xs_init.c					\
	src/xs_about.c					\
	src/xs_support.c	src/xs_support.h	\
	src/xs_config.c		src/xs_config.h		\
	src/xs_md5.c		src/xs_md5.h		\
	src/xs_length.c		src/xs_length.h		\
	src/xs_genui.c		src/xs_genui.h		\
	src/xs_glade.c		src/xs_glade.h		\
	src/xs_interface.c	src/xs_interface.h	\
	src/xs_curve.c		src/xs_curve.h		\
	src/xs_stil.c		src/xs_stil.h		\
	src/xs_title.c		src/xs_title.h		\
	src/xs_fileinfo.c	src/xs_fileinfo.h	\
	src/xs_filter.c		src/xs_filter.h		\
	src/xs_sidplay.h	src/xs_player.h		\
	src/xs_sidplay1.cc	src/xs_sidplay1.h	\
	src/xs_sidplay2.cc	src/xs_sidplay2.h	\
	src/xmms-sid.c		src/xmms-sid.h