SUBDIRS = src doc
.PHONY: $(SUBDIRS) all
-
-all: $(SUBDIRS)
+prefix = /usr
+datadir = $(prefix)/share
+pkgdatadir = $(datadir)/mp-xquery
CDEP=doc/common/common.ent
+all: $(SUBDIRS)
+
$(SUBDIRS): $(CDEP)
$(MAKE) -C $@
-clean install: $(CDEP)
+clean check: $(CDEP)
+ for d in $(SUBDIRS); do \
+ $(MAKE) -C $$d $@; \
+ done
+
+install:
+ mkdir -p $(DESTDIR)$(pkgdatadir)/bibframe
+ cp -r bibframe $(DESTDIR)$(pkgdatadir)
for d in $(SUBDIRS); do \
$(MAKE) -C $$d $@; \
done
MP_CONFIG=/usr/bin/metaproxy-config
%install
-make DESTDIR=${RPM_BUILD_ROOT} libdir=%{_libdir} install
+make DESTDIR=${RPM_BUILD_ROOT} prefix=%{_prefix} libdir=%{_libdir} install
%clean
rm -fr ${RPM_BUILD_ROOT}
%defattr(-,root,root)
%{_libdir}/mp-xquery/*
%{_mandir}/man3/xquery.*
+%{_datadir}/mp-xquery