# postgresql-debversion Makefile template # # # Copyright © 2004-2011 Roger Leigh # # postgresql-debversion is free software: you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation, either version 3 of # the License, or (at your option) any later version. # # postgresql-debversion 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see # . # ##################################################################### if BUILD_DEBVERSION pg_server_lib_LTLIBRARIES = \ debversion.la debversion_la_SOURCES = \ debversion.cc debversion_la_CFLAGS = -I$(pg_server_includedir) debversion_la_CXXFLAGS = -I$(pg_server_includedir) debversion_la_LDFLAGS = -module -avoid-version $(APT_PKG_LIBS) if BUILD_EXTENSION pg_extension_DATA = \ debversion.control \ debversion--unpackaged--1.0.5.sql \ debversion--1.0.5--1.0.6.sql \ debversion--1.0.6--1.0.7.sql \ debversion--$(VERSION).sql endif pg_contrib_DATA = \ debversion.sql \ uninstall_debversion.sql endif if BUILD_EXTENSION debversion.sql: debversion.sql.ext cp $< $@ uninstall_debversion.sql: uninstall_debversion.sql.ext cp $< $@ debversion--$(VERSION).sql: debversion.sql.in cp $< $@ else debversion.sql: debversion.sql.in sed 's,MODULE_PATHNAME,$$libdir/debversion,g' $< >$@ uninstall_debversion.sql: uninstall_debversion.sql.old cp $< $@ endif CLEANFILES = \ debversion.sql \ uninstall_debversion.sql \ debversion--$(VERSION).sql EXTRA_DIST = \ debversion.sql.in \ debversion.sql.ext \ debversion--unpackaged--1.0.5.sql \ debversion--1.0.5--1.0.6.sql \ debversion--1.0.6--1.0.7.sql \ uninstall_debversion.sql.old \ uninstall_debversion.sql.ext \ Makefile-pgxs