X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=f6d7bf6a30081b41cb6f5205a08680f3730a5db1;hb=4e46a64b2128bac3960501ff202a701558fa1ce1;hp=d55a3096fe0b99c590026a58e3f004165f519fe7;hpb=7823b20dbec0f8f8cb42948b5b06398d2ab33799;p=mp-xquery-moved-to-github.git diff --git a/Makefile b/Makefile index d55a309..f6d7bf6 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,28 @@ SUBDIRS = src doc .PHONY: $(SUBDIRS) all +prefix = /usr +datadir = $(prefix)/share +pkgdatadir = $(datadir)/mp-xquery + +CDEP=doc/common/common.ent all: $(SUBDIRS) -$(SUBDIRS): doc/common +$(SUBDIRS): $(CDEP) $(MAKE) -C $@ -clean install: doc/common +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 -doc/common: +$(CDEP): git submodule init git submodule update