mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-07 17:29:23 +02:00
This patch fix the Makefiles in contrib/{pginterface, spi, miscutil, int8, ip_and_mac, sequence, soundex, string, userlock, array, datetime} to install their modules in one directory(lib/modules/).
38 lines
678 B
Makefile
38 lines
678 B
Makefile
#
|
|
# PostgreSQL types for IP and MAC addresses
|
|
#
|
|
# $Id: Makefile,v 1.3 1998/04/22 04:14:11 scrappy Exp $
|
|
|
|
SRCDIR= ../../src
|
|
|
|
include $(SRCDIR)/Makefile.global
|
|
|
|
CONTRIBDIR=$(LIBDIR)/modules
|
|
|
|
CFLAGS+= $(CFLAGS_SL) -I$(SRCDIR)/include
|
|
|
|
ifdef REFINT_VERBOSE
|
|
CFLAGS+= -DREFINT_VERBOSE
|
|
endif
|
|
|
|
TARGETS= ip$(DLSUFFIX) ip.sql mac$(DLSUFFIX) mac.sql
|
|
|
|
CLEANFILES+= $(TARGETS)
|
|
|
|
all:: $(TARGETS)
|
|
|
|
install:: all $(CONTRIBDIR)
|
|
for f in *$(DLSUFFIX); do $(INSTALL) -c $$f $(CONTRIBDIR)/$$f; done
|
|
|
|
$(CONTRIBDIR):
|
|
mkdir -p $(CONTRIBDIR)
|
|
|
|
%.sql: %.sql.in
|
|
rm -f $@; \
|
|
C=`pwd`; \
|
|
sed -e "s:_OBJWD_:$(CONTRIBDIR):g" \
|
|
-e "s:_DLSUFFIX_:$(DLSUFFIX):g" < $< > $@
|
|
|
|
clean:
|
|
rm -f $(TARGETS) *.o
|