X-Git-Url: http://git.indexdata.com/?p=mp-xquery-moved-to-github.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=f6d7bf6a30081b41cb6f5205a08680f3730a5db1;hp=bbe34d8933d90b26fbf0cd6d464f8774b0871811;hb=6646f2a101fd65370576a813a3b5784311a38821;hpb=1cea5f5d2d4290b91b272a179a5b747f34919131 diff --git a/Makefile b/Makefile index bbe34d8..f6d7bf6 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,24 @@ SUBDIRS = src doc .PHONY: $(SUBDIRS) all - -all: $(SUBDIRS) +prefix = /usr +datadir = $(prefix)/share +pkgdatadir = $(datadir)/mp-xquery CDEP=doc/common/common.ent +all: $(SUBDIRS) + $(SUBDIRS): $(CDEP) $(MAKE) -C $@ -clean install: $(CDEP) +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