SUBDIRS = src doc .PHONY: $(SUBDIRS) all prefix = /usr datadir = $(prefix)/share pkgdatadir = $(datadir)/mp-sparql CDEP=doc/common/common.ent all: $(SUBDIRS) $(SUBDIRS): $(CDEP) $(MAKE) -C $@ clean check: $(CDEP) for d in $(SUBDIRS); do \ $(MAKE) -C $$d $@; \ done install: mkdir -p $(DESTDIR)$(pkgdatadir)/bibframe cp bibframe/cql2pqf.txt bibframe/*.xml $(DESTDIR)$(pkgdatadir)/bibframe if test -d /usr/lib64 ; then \ sed "s@@$(prefix)/lib64/metaproxy6/modules@" $(DESTDIR)$(pkgdatadir)/bibframe/config-sparql.xml; \ else \ sed "s@@$(prefix)/lib/metaproxy6/modules@" $(DESTDIR)$(pkgdatadir)/bibframe/config-sparql.xml; \ fi for d in $(SUBDIRS); do \ $(MAKE) -C $$d $@; \ done $(CDEP): git submodule init git submodule update