X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=Makefile;h=b16b627972f470fc3a2e12dbf869e0aef971bb90;hb=efd54375eddf0c86bffd64d70d0fa309cfc9f312;hp=a3fb177d5558f1dfaeab5ff4278513fac65a6d4f;hpb=fd951f5b39fc73d6f4d97b93965ec1f3b6d9407b;p=mp-sparql-moved-to-github.git diff --git a/Makefile b/Makefile index a3fb177..b16b627 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,28 @@ SUBDIRS = src doc .PHONY: $(SUBDIRS) all +prefix = /usr +datadir = $(prefix)/share +pkgdatadir = $(datadir)/mp-sparql + +CDEP=doc/common/common.ent all: $(SUBDIRS) -$(SUBDIRS): +$(SUBDIRS): $(CDEP) $(MAKE) -C $@ -clean install: +clean check: $(CDEP) + 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 + +$(CDEP): + git submodule init + git submodule update \ No newline at end of file