view Makefile.am @ 181:be1cf864f28e

Added install-user and uninstall-user targets which install to current user's home-directory, updated installation instructions accordingly.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 18 Aug 2004 05:14:01 +0000
parents d75e8051c84e
children 9dfd63f433c4
line wrap: on
line source

# Require latest automake
AUTOMAKE_OPTIONS = 1.7

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

# Additional directories to be included in DISTRIBUTION
DIST_SUBDIRS = src

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

ChangeLog: CVS/Entries src/CVS/Entries
	cvs2cl.pl --passwd /etc/passwd --domain tnsp.org

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

# Generated libraries
lib_LTLIBRARIES = libxmmssid.la

# Generals
AM_CFLAGS   = -W -Wall -D_REENTRANT @XMMS_CFLAGS@ @SIDPLAY1_INCLUDES@ @SIDPLAY2_INCLUDES@ @BUILDERS_INCLUDES@ @NANOSID_INCLUDES@
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@ @NANOSID_LDADD@ 

# 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_stil.c		src/xs_stil.h		\
	src/xs_sidplay.h				\
	src/xs_sidplay1.cc	src/xs_sidplay1.h	\
	src/xs_sidplay2.cc	src/xs_sidplay2.h	\
	src/xs_nanosid.c	src/xs_nanosid.h	\
	src/xmms-sid.c		src/xmms-sid.h