-TODO=\
- bool.moo\
- compare.moo\
- equality.moo\
- logic.moo\
- nat.moo \
- Z.moo
+SRC=\
+ bool.ma\
+ compare.ma\
+ equality.ma\
+ logic.ma\
+ nat.ma \
+ Z.ma
DEPEND_NAME=.depend
+LINKS=.matita matita.lang matita.conf.xml
-all: links $(TODO)
+all: $(LINKS) $(SRC:%.ma=%.moo)
-clean:
- rm -f $(DEPEND_NAME) $(TODO)
+clean: $(LINKS)
+ rm -f $(SRC:%.ma=%.moo)
../matitaclean all
-# Let's prepare the environment
-links: .matita matita.lang matita.conf.xml
-.PHONY: links
+depend: $(DEPEND_NAME)
+%.moo:%.ma depend $(LINKS)
+ [ ! -e $@ ] || ../matitaclean $<
+ ../matitac $< || ../matitaclean $<
+
+$(DEPEND_NAME): $(SRC) $(LINKS)
+ ../matitadep $(SRC) > $@
+
+# Let's prepare the environment
.matita:
ln -s ../.matita .
ln -s ../matita.conf.xml .
#done
-depend: $(DEPEND_NAME)
-
-%.moo:%.ma
- [ ! -e $@ ] || ../matitaclean $<
- ../matitac $< || ../matitaclean $<
-
-$(DEPEND_NAME): $(TODO:%.moo=%.ma)
- ../matitadep $^ > $@
-
include $(DEPEND_NAME)