Mention CentOS 7
[mp-sparql-moved-to-github.git] / Makefile
index b16b627..ba748f6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,11 +18,16 @@ clean check: $(CDEP)
 
 install:
        mkdir -p $(DESTDIR)$(pkgdatadir)/bibframe
-       cp bibframe/*.xml $(DESTDIR)$(pkgdatadir)/bibframe
+       cp bibframe/cql2pqf.txt bibframe/*.xml $(DESTDIR)$(pkgdatadir)/bibframe
+       if test -d /usr/lib64 ; then \
+               sed "s@<dlpath.*dlpath>@<dlpath>$(prefix)/lib64/metaproxy6/modules</dlpath>@" <bibframe/config-sparql.xml >$(DESTDIR)$(pkgdatadir)/bibframe/config-sparql.xml; \
+       else \
+               sed "s@<dlpath.*dlpath>@<dlpath>$(prefix)/lib/metaproxy6/modules</dlpath>@" <bibframe/config-sparql.xml >$(DESTDIR)$(pkgdatadir)/bibframe/config-sparql.xml; \
+       fi
        for d in $(SUBDIRS); do \
                $(MAKE) -C $$d $@; \
        done
 
 $(CDEP):
        git submodule init
-       git submodule update
\ No newline at end of file
+       git submodule update