X-Git-Url: http://git.indexdata.com/?p=mp-xquery-moved-to-github.git;a=blobdiff_plain;f=Makefile;h=f6d7bf6a30081b41cb6f5205a08680f3730a5db1;hp=a3fb177d5558f1dfaeab5ff4278513fac65a6d4f;hb=6646f2a101fd65370576a813a3b5784311a38821;hpb=e9302029bc26a2f2d8403c80ced6420a7acfe4c7 diff --git a/Makefile b/Makefile index a3fb177..f6d7bf6 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +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): +$(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 -r bibframe $(DESTDIR)$(pkgdatadir) for d in $(SUBDIRS); do \ $(MAKE) -C $$d $@; \ done + +$(CDEP): + git submodule init + git submodule update