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