# # Copyright (C) 2004 - 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_feedback.spec spin_feedback.conf.in \ spin_feedback.xml \ create-feedback-pgsql.sql create-feedback-sqlite.sql \ create-feedback-mysql.sql edit = sed -e 's|@datadir[@]|$(pkgdatadir)|g' \ -e 's|@libdir[@]|$(libdir)|g' \ -e 's|@sysconfdir[@]|$(sysconfdir)|g' \ -e 's|@prefix[@]|$(prefix)|g' spin_feedback.conf: Makefile rm -f $@ $@.tmp $(edit) '$(srcdir)/$@.in' >$@.tmp mv $@.tmp $@ spin_feedback.conf: spin_feedback.conf.in all: spin_feedback.conf noinst_DATA=spin_feedback.spec nobase_dist_pkgdata_DATA=html/feedback.sm doc_DATA=README INSTALL COPYING NEWS ChangeLog lib_LTLIBRARIES=spin_feedback.la # Local targets (pkgconfig stuff, docs etc.) clean-local: rm -f spin_feedback.spec install-data-local: $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/spinapps test -e $(DESTDIR)$(sysconfdir)/spinapps/spin_feedback.xml || \ $(INSTALL_DATA) spin_feedback.xml $(DESTDIR)/$(sysconfdir)/spinapps uninstall-hook: rmdir $(DESTDIR)$(docdir) || true spin_feedback_la_SOURCES=feedback.c spin_feedback_la_LIBADD=$(SPINLIBS) spin_feedback_la_LDFLAGS=-rpath $(libdir) -module -avoid-version -export-dynamic