-H = @
-XOA_DIR = ../../../components/binaries/xoa
-XOA = xoa.native
+H = @
+XOA_DIR = ../../../components/binaries/xoa
+XOA = xoa.native
+DEP_DIR = ../../../components/binaries/matitadep
+DEP = matitadep.native
-CONF = Ground_2/xoa.conf.xml
-TARGETS = Ground_2/xoa_natation.ma Ground_2/xoa.ma
+CONF = ground_2/xoa.conf.xml
+TARGETS = ground_2/xoa_natation.ma ground_2/xoa.ma
-PACKAGES = Ground_2 Basic_2 Apps_2
+ORIG = . ./orig.sh
+
+ORIGS = basic_2/basic_1.orig
+
+PACKAGES = ground_2 basic_2 apps_2
all:
@echo " EXEC $(XOA) $(CONF)"
$(H)MATITA_RT_BASE_DIR=../.. $(XOA_DIR)/$(XOA) $(CONF)
+# orig #######################################################################
+
+orig: $(ORIGS)
+ @echo " ORIG basic_2"
+ $(H)$(ORIG) basic_2 < $(ORIGS)
+
+# dep ########################################################################
+
+deps: MAS = $(shell find $* -name "*.ma")
+
+deps: $(DEP_DIR)/$(DEP)
+ @echo " MATITADEP"
+ $(H)grep "include \"" $(MAS) | $<
+
# stats ######################################################################
stats: $(PACKAGES:%=%.stats)
# summary ####################################################################
define SUMMARY_TEMPLATE
- TBL_$(1) := $(1)/ld_$(1)_sum.tbl
+ TBL_$(1) := $(1)/$(1)_sum.tbl
MAS_$(1) := $$(shell find $(1) -name "*.ma")
TBLS += $$(TBL_$(1))