projects
/
mp-sparql-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add section about enabling the configuration
[mp-sparql-moved-to-github.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
a966b17
..
eb7435a
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,12
+1,28
@@
-SUBDIRS = src
+SUBDIRS = src doc
.PHONY: $(SUBDIRS) all
.PHONY: $(SUBDIRS) all
+prefix = /usr
+datadir = $(prefix)/share
+pkgdatadir = $(datadir)/mp-sparql
+
+CDEP=doc/common/common.ent
all: $(SUBDIRS)
all: $(SUBDIRS)
-$(SUBDIRS):
+$(SUBDIRS): $(CDEP)
$(MAKE) -C $@
$(MAKE) -C $@
-clean install:
+clean check: $(CDEP)
+ for d in $(SUBDIRS); do \
+ $(MAKE) -C $$d $@; \
+ done
+
+install:
+ mkdir -p $(DESTDIR)$(pkgdatadir)/bibframe
+ cp bibframe/cql2pqf.txt bibframe/*.xml $(DESTDIR)$(pkgdatadir)/bibframe
for d in $(SUBDIRS); do \
$(MAKE) -C $$d $@; \
done
for d in $(SUBDIRS); do \
$(MAKE) -C $$d $@; \
done
+
+$(CDEP):
+ git submodule init
+ git submodule update