bibframe sample config in /usr/share/mp-sparql/bibframe MPSPARQL-6
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 6 Feb 2015 13:28:00 +0000 (13:28 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 6 Feb 2015 13:28:00 +0000 (13:28 +0000)
Makefile
mp-sparql.spec

index a3fb177..60056c9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,22 @@
 SUBDIRS = src doc
 .PHONY: $(SUBDIRS) all
+prefix = /usr
+datadir = $(prefix)/share
+pkgdatadir = $(datadir)/mp-sparql
 
 all: $(SUBDIRS)
 
 $(SUBDIRS):
        $(MAKE) -C $@
 
-clean install:
+clean:
+       for d in $(SUBDIRS); do \
+               $(MAKE) -C $$d $@; \
+       done
+
+install:
+       mkdir -p $(DESTDIR)$(pkgdatadir)/bibframe
+       cp bibframe/*.xml $(DESTDIR)$(pkgdatadir)/bibframe
        for d in $(SUBDIRS); do \
                $(MAKE) -C $$d $@; \
        done
index 5a83292..9facf78 100644 (file)
@@ -49,7 +49,7 @@ make \
        MP_CONFIG=/usr/bin/metaproxy-config
 
 %install
-make DESTDIR=${RPM_BUILD_ROOT} libdir=%{_libdir} install
+make install DESTDIR=${RPM_BUILD_ROOT} prefix=%{_prefix} libdir=%{_libdir}
 
 %clean
 rm -fr ${RPM_BUILD_ROOT}
@@ -58,3 +58,4 @@ rm -fr ${RPM_BUILD_ROOT}
 %defattr(-,root,root)
 %{_libdir}/mp-sparql/*
 %{_mandir}/man3/sparql.*
+%{_datadir}/mp-sparql