]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/contribs/LAMBDA-TYPES/Makefile
- added some options to matitadep: -stdout and -exclude
[helm.git] / helm / software / matita / contribs / LAMBDA-TYPES / Makefile
index 93fba67cede85250e940daded0ced5542e40b635..a2a3b8eecf9a47b97b76df10c30ca63933b0e04c 100644 (file)
@@ -1,10 +1,52 @@
-GOALS = all opt clean clean.opt
+H=@
 
-DEVELS = Base-1 LambdaDelta-1 Base-2 Unified-Sub 
+MATITAOPTIONS=-onepass
 
-$(GOALS): 
-       @$(foreach DEVEL, $(DEVELS), $(MAKE) -k -C $(DEVEL) $@;) 
+DIR=$(shell basename $$PWD)
 
-.PHONY: (GOALS)
+MMAS = $(shell find Base-2 -name "*.mma")
+MAS = $(MMAS:%.mma=%.ma)
+XMAS = Base-2/theory.ma pippo
 
-.SUFFIXES:
+%.ma: %.mma 
+       $(H)../../matitac.opt $(MATITAOPTIONS) `../../matitadep.opt -stdout $<` 2> /dev/null
+       $(H)../../matitac.opt $(MATITAOPTIONS) -dump $@ $< 2> /dev/null
+       $(H)$(MAKE) --no-print-directory depend.opt
+
+$(DIR) all: $(MAS)
+       $(H)$(MAKE) --no-print-directory depend.full
+       $(H)../../matitac $(MATITAOPTIONS) 2> /dev/null
+$(DIR).opt opt all.opt: $(MAS)
+       $(H)$(MAKE) --no-print-directory depend.full.opt
+       $(H)../../matitac.opt $(MATITAOPTIONS) 2> /dev/null
+clean:
+       $(H)../../matitaclean
+       $(H)rm -f $(MAS)
+       $(H)$(MAKE) --no-print-directory depend
+clean.opt:
+       $(H)../../matitaclean.opt
+       $(H)rm -f $(MAS)
+       $(H)$(MAKE) --no-print-directory depend.opt
+clean.ma:
+       $(H)../../matitaclean.opt $(MAS)
+       $(H)rm -f $(MAS)
+       $(H)$(MAKE) --no-print-directory depend.opt
+
+depend:
+       @echo matitadep
+       $(H)../../matitadep $(foreach FILE,$(XMAS),-exclude $(FILE))
+       $(H)cat Base-2/depends >> depends
+depend.opt:
+       @echo matitadep.opt
+       $(H)../../matitadep.opt $(foreach FILE,$(XMAS),-exclude $(FILE))
+       $(H)cat Base-2/depends >> depends
+depend.full:
+       @echo matitadep
+       $(H)../../matitadep 
+       $(H)cat Base-2/depends >> depends
+depend.full.opt:
+       @echo matitadep.opt
+       $(H)../../matitadep.opt 
+       $(H)cat Base-2/depends >> depends
+
+include Base-2/.depend