# # make(1) instructions for creating demo database AAA for MUG '97 # This is a hand-generated makefile (not from jake, don't zap it!) # # Set the symbol "D" to the directory which will contain the database. # Set the symbol "T" to the directory for temporary files. # D = /home2/daylight/newdb T = /home2/dave/projects/indir FINAL_DB = AAA.TDB INDIR_DB = AAA_IN.TDB DTYPE_DB = AAA_DTS.TDB TEMPBASE = $(D)/AAA_TMP TARGETS = $(D)/$(FINAL_DB) all: $(TARGETS) # # Create datatypes database and load it # $D/$(DTYPE_DB): $(T)/aaa_dts.tdt thormake +NOSECURE_PASSWORDS \ "$(D)/$(DTYPE_DB)%,write,exec@huxley:thor:thor%" \ 10 0 thorload +NOSECURE_PASSWORDS +NOMERGE \ "$(D)/$(DTYPE_DB)%write@huxley:thor:thor%" \ $(T)/aaa_dts.tdt # # Create empty indirect database # $(D)/$(INDIR_DB): $(T)/aaa_dts.tdt $(D)/$(DTYPE_DB) thormake +NOSECURE_PASSWORDS \ -DATATYPES_DATABASE $(DTYPE_DB) \ "$(D)/$(INDIR_DB)%,write,exec@huxley:thor:thor%" \ 50 50 # # Create temporary database, load it, list its contents, then destroy it. # $SMI roots, GRF's, indirect data are automatically generated # $(T)/aaa_smi.tdt: (T)/aaa_orig.tdt $(D)/$(DTYPE_DB) $(D)/$(INDIR_DB) thormake +NOSECURE_PASSWORDS \ -DATATYPES_DATABASE $(DTYPE_DB) \ -INDIRECT_DATABASE $(INDIR_DB) \ "$(TEMPBASE)%write,exec@huxley:thor:thor%" \ 100 100 thorload +NOSECURE_PASSWORDS +GENERATE_INDIRECT \ -INDIRECT_DATABASE "$(INDIR_DB)%write@huxley:thor:thor%" \ "$(TEMPBASE)%write@huxley:thor:thor%" \ $(T)/aaa_orig.tdt thorlist +NOSECURE_PASSWORDS +KEEP_INDIRECT_DATA \ "$(TEMPBASE)%@huxley:thor:thor%" > $(T)/aaa_smi.tdt thordestroy +NOSECURE_PASSWORDS -ARE_YOU_SURE DONTASK \ "$(TEMPBASE)%exec@huxley:thor:thor%" # # Fingerprint all $SMI-rooted datatrees # $(T)/aaa_fps.tdt: $(T)/aaa_smi.tdt $(DY_ROOT)/bin/fingerprint -x \ $(T)/aaa_smi.tdt \ > $(T)/aaa_fps.tdt # # Create the final AAA database and raw-load it. # $(D)/$(FINAL_DB): $(T)/aaa_fps.tdt $(D)/$(DTYPE_DB) $(D)/$(INDIR_DB) thormake +NOSECURE_PASSWORDS \ -DATATYPES_DATABASE $(DTYPE_DB) \ -INDIRECT_DATABASE $(INDIR_DB) \ "$(D)/$(FINAL_DB)%write,exec@huxley:thor:thor%" \ 100 100 thorload +NOSECURE_PASSWORDS +RAW_DATA \ "$(D)/$(FINAL_DB)%write@huxley:thor:thor%" \ $(T)/aaa_fps.tdt # # Utility targets # clean: rm -f $(D)/AAA.* $(D)/AAA_*.* cleanall: clean rm -f $(T)/aaa_smi.tdt $(T)/aaa_fps.tdt