# # Copyright (C) 2005 - 2007 Bojan Smojver, Rexursive # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 2.1 of the License, or (at your # option) any later version. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License # for more details. # # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see . # ACLOCAL_AMFLAGS=-I m4 EXTRA_DIST=buildconf spin_auth.spec spin_auth.conf.in spin_auth.xml edit = sed -e 's|@datadir[@]|$(pkgdatadir)|g' \ -e 's|@libdir[@]|$(libdir)|g' \ -e 's|@sysconfdir[@]|$(sysconfdir)|g' \ -e 's|@prefix[@]|$(prefix)|g' spin_auth.conf: Makefile rm -f $@ $@.tmp $(edit) '$(srcdir)/$@.in' >$@.tmp mv $@.tmp $@ spin_auth.conf: spin_auth.conf.in all: spin_auth.conf noinst_DATA=spin_auth.spec doc_DATA=README INSTALL COPYING NEWS ChangeLog lib_LTLIBRARIES=spin_auth.la # Local targets (pkgconfig stuff, docs etc.) clean-local: rm -f spin_auth.spec install-data-local: $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/spinapps test -e $(DESTDIR)$(sysconfdir)/spinapps/spin_auth.xml || \ $(INSTALL_DATA) spin_auth.xml $(DESTDIR)/$(sysconfdir)/spinapps spin_auth_la_SOURCES=auth.c spin_auth_la_LIBADD=$(SPINLIBS) spin_auth_la_LDFLAGS=-rpath $(libdir) -module -avoid-version -export-dynamic