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