X-Git-Url: http://git.indexdata.com/?p=mp-xquery-moved-to-github.git;a=blobdiff_plain;f=Makefile;h=f6d7bf6a30081b41cb6f5205a08680f3730a5db1;hp=d55a3096fe0b99c590026a58e3f004165f519fe7;hb=6646f2a101fd65370576a813a3b5784311a38821;hpb=7823b20dbec0f8f8cb42948b5b06398d2ab33799 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