Checkout submodules as necessary MPSPARQL-23
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 26 May 2015 12:26:00 +0000 (14:26 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 26 May 2015 12:26:00 +0000 (14:26 +0200)
Makefile

index 6ba1a3a..b16b627 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,12 +4,14 @@ prefix = /usr
 datadir = $(prefix)/share
 pkgdatadir = $(datadir)/mp-sparql
 
+CDEP=doc/common/common.ent
+
 all: $(SUBDIRS)
 
-$(SUBDIRS):
+$(SUBDIRS): $(CDEP)
        $(MAKE) -C $@
 
-clean check:
+clean check: $(CDEP)
        for d in $(SUBDIRS); do \
                $(MAKE) -C $$d $@; \
        done
@@ -20,3 +22,7 @@ install:
        for d in $(SUBDIRS); do \
                $(MAKE) -C $$d $@; \
        done
+
+$(CDEP):
+       git submodule init
+       git submodule update
\ No newline at end of file