added 2 missing indexes to uploaded_media
[mir.git] / dbscripts / dupetrigger / Makefile-dist
index d4d0f60..aa3cd0d 100755 (executable)
@@ -1,22 +1,26 @@
 # Makefile
 
-CC=gcc
-PGINC=/usr/include/postgresql
-PGVERSION=-DPG70
+# Set the following directory so that it contains spi.h and trigger.h
+PGINC=/usr/include/postgresql/server
+
+#PGVERSION=-DPG70
 #PGVERSION=-DPG71
-CFLAGS=-I$(PGINC) $(PGVERSION)
+PGVERSION=-DPG72
 
 # If changed, also change postgresql.script
-INSTALLDIR=. #./../../Mir/src
+INSTALLDIR=/var/lib/postgres/data
+
 
 
+CC=gcc
+CFLAGS=-I$(PGINC) $(PGVERSION)
+
 install: dupetrigger.so
        cp dupetrigger.so $(INSTALLDIR)
        chmod 644 $(INSTALLDIR)/dupetrigger.so
        #
        # Now, change the path to dupetrigger.so in postgresql.script to the
-       # absolute path where dupetrigger.so is installed (this 
-       # is typically ../../../Mir/src)
+       # absolute path where dupetrigger.so is installed (${INSTALLDIR})
 
 dupetrigger.so: dupetrigger.o
        $(CC) -shared -dynamic -o dupetrigger.so dupetrigger.o