Add section about enabling the configuration
[mp-sparql-moved-to-github.git] / Makefile
index 60056c9..eb7435a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,19 +4,25 @@ prefix = /usr
 datadir = $(prefix)/share
 pkgdatadir = $(datadir)/mp-sparql
 
+CDEP=doc/common/common.ent
+
 all: $(SUBDIRS)
 
-$(SUBDIRS):
+$(SUBDIRS): $(CDEP)
        $(MAKE) -C $@
 
-clean:
+clean check: $(CDEP)
        for d in $(SUBDIRS); do \
                $(MAKE) -C $$d $@; \
        done
 
 install:
        mkdir -p $(DESTDIR)$(pkgdatadir)/bibframe
-       cp bibframe/*.xml $(DESTDIR)$(pkgdatadir)/bibframe
+       cp bibframe/cql2pqf.txt bibframe/*.xml $(DESTDIR)$(pkgdatadir)/bibframe
        for d in $(SUBDIRS); do \
                $(MAKE) -C $$d $@; \
        done
+
+$(CDEP):
+       git submodule init
+       git submodule update