SRC=$(shell find @ROOT@ -name "*.ma" -a -type f)
TODO=$(SRC:%.ma=%.mo)
+MATITA_FLAGS=
+NODB=false
+ifeq ($(NODB),true)
+ MATITA_FLAGS += -nodb
+endif
+
MATITAC=@CC@
MATITACLEAN=@CLEAN@
MATITADEP=@DEP@
all: $(TODO)
clean:
- $(MATITACLEAN) $(SRC)
+ $(MATITACLEAN) $(MATITA_FLAGS) $(SRC)
rm -f $(TODO)
%.moo:
- ($(MATITAC) -q -I @ROOT@ $< | (grep -v "^make" || true))
+ ($(MATITAC) $(MATITA_FLAGS) -q -I @ROOT@ $< | (grep -v "^make" || true))
@DEPFILE@ : $(SRC)
- @DEP@ -I '@ROOT@' $^ > @DEPFILE@
+ $(MATITADEP) $(MATITA_FLAGS) -I '@ROOT@' $^ > @DEPFILE@
# this is the depend for full targets like:
# dir/dir/name.moo: dir/dir/name.ma dir/dep.moo