Code

postrr.sql: Use "LANGUAGE C" rather than "LANGUAGE 'C'".
[postrr.git] / src / Makefile.am
1 AM_CFLAGS = @STRICT_CFLAGS@
3 BUILT_SOURCES = postrr.h
4 CLEANFILES = postrr.h
6 all-local: postrr.h postrr.sql postrr.control Makefile.pgxs ../version-gen.sh
7         @echo Building $(PACKAGE_NAME) version $$( cd ..; ./version-gen.sh )
8         make -f Makefile.pgxs all
10 check-local: Makefile.pgxs
11         make -f Makefile.pgxs check
13 # XXX: make it possible to install to the directories passed to configure
14 install-data-local: Makefile.pgxs
15         make -f Makefile.pgxs install
17 uninstall-local: Makefile.pgxs
18         make -f Makefile.pgxs uninstall
20 installdirs-local: Makefile.pgxs
21         make -f Makefile.pgxs installdirs
23 installcheck-local: Makefile.pgxs
24         make -f Makefile.pgxs installcheck
26 clean-local: Makefile.pgxs
27         make -f Makefile.pgxs clean
29 distclean-local: Makefile.pgxs
30         make -f Makefile.pgxs distclean
32 maintainer-clean-local: Makefile.pgxs
33         make -f Makefile.pgxs maintainer-clean
35 ../version:
36         (cd ..; make version)
38 postrr.h: postrr.h.in ../version
39         . ../version; sed \
40             -e "s/@POSTRR_VERSION_MAJOR@/$$VERSION_MAJOR/g" \
41             -e "s/@POSTRR_VERSION_MINOR@/$$VERSION_MINOR/g" \
42             -e "s/@POSTRR_VERSION_PATCH@/$$VERSION_PATCH/g" \
43             -e "s/@POSTRR_VERSION_EXTRA@/$$VERSION_EXTRA/g" \
44             -e "s/@POSTRR_VERSION_STRING@/$$VERSION_STRING/g" \
45             postrr.h.in > postrr.h