|
|
1.1 ! root 1: ############################################################################# ! 2: # ! 3: # MAKEFILE ! 4: # ! 5: ############################################################################# ! 6: # ! 7: # Program Description: Generic Makefile for Help Index ! 8: # ! 9: ############################################################################# ! 10: # ! 11: # The following are the optionally passed variables: ! 12: # ! 13: # STOPF = Contains an alternate stop word file. ! 14: # FIELDF = Contains an alternate field definition file. ! 15: # IND_ONLY = IND_ONLY=Y will not rebuild the HLP file, force build .ind. ! 16: # OS2_FLAG = Run bound version of forage (FORAGEP) ! 17: # instead of DMPI version (FORAGE). ! 18: ############################################################################# ! 19: ! 20: !IFNDEF NAME ! 21: !ERROR -- Viewer "NAME" macro undefined ! 22: !endif ! 23: ! 24: # ! 25: !IFNDEF OS2_FLAG ! 26: FORAGE =FORAGE ! 27: !else ! 28: FORAGE =FORAGEP ! 29: !endif ! 30: ! 31: ! 32: !IFNDEF STOPF ! 33: STOPF =$(NAME) ! 34: !endif ! 35: ! 36: !IFNDEF FIELDF ! 37: FIELDF =$(NAME) ! 38: !endif ! 39: ! 40: # This will only build the index file ! 41: # ! 42: CLEAN_IND=DEL_ZOF ! 43: WIN_FS = ! 44: ! 45: # Multivolume help files- this option selected ! 46: # w/ builddoc /m parameter does BOTH /i command function as well ! 47: # as build using a .MLT file. (used by both forage and w_scan). ! 48: ! 49: !IFNDEF MULTIVOL ! 50: MLTFILE= ! 51: FOPTS= /w $(NAME).hlp ! 52: !else ! 53: MLTFILE=$(NAME).mlt ! 54: FOPTS= /m $(NAME).mlt ! 55: WIN_FS = ! 56: !endif ! 57: ! 58: ! 59: goal: $(NAME).ind $(CLEAN_IND) ! 60: ! 61: clean: ! 62: -del $(NAME).wrs ! 63: -del $(NAME).lst ! 64: -del $(NAME).oca ! 65: -del $(NAME).zon ! 66: -del $(NAME).zos ! 67: -del $(NAME).cfg ! 68: -del $(NAME).ans ! 69: -del $(NAME).ind ! 70: ! 71: #following for special font option- ignore. ! 72: $(NAME).lgh: $(NAME).tbl ! 73: masm $(NAME).tbl,$(NAME).lg2; ! 74: link $(NAME).lg2,$(NAME).lg3,NUL,,NUL ! 75: @echo . ! 76: @echo ....Ignore warning - No stack segment ! 77: @echo ....Ignore warning - Program has no start address ! 78: @echo . ! 79: exe2bin $(NAME).lg3,$(NAME).lgh ! 80: del $(NAME).lg2 ! 81: del $(NAME).lg3 ! 82: ! 83: DEL_ZOF: ! 84: @-del $(NAME).zof ! 85: $(NAME).mlt: $(WIN_FS) bag.ini ! 86: getmlt bag.ini,$(NAME).mlt ! 87: ! 88: $(NAME).zof: $(NAME).mlt ! 89: $(FORAGE) $(FOPTS) ! 90: @echo . ! 91: @echo . ! 92: #create a marker file so we can delete large .ans file and still ! 93: # have good restartability. ! 94: @echo > $(NAME).zof ! 95: ! 96: #$(NAME).oca: $(NAME).zof $(NAME).lgh ! 97: $(NAME).oca: $(NAME).zof ! 98: # w_scan $(NAME).ans,,$(STOPF).stp,$(FIELDF).fld,$(MLTFILE),$(NAME).lst,longhorn; ! 99: w_scan $(NAME).ans,,$(STOPF).stp,$(FIELDF).fld,$(MLTFILE),$(NAME).lst; ! 100: @-del $(NAME).ans ! 101: @echo . ! 102: @echo . ! 103: ! 104: $(NAME).ind: $(NAME).oca ! 105: # index $(NAME),,$(NAME),$(STOPF).stp,$(FIELDF).fld,$(NAME).map,longhorn; ! 106: index $(NAME),,$(NAME),$(STOPF).stp,$(FIELDF).fld,$(NAME).map; ! 107: @-del $(NAME).wrs ! 108: @-del $(NAME).zon ! 109: @-del $(NAME).zos ! 110: @-del $(NAME).cfg ! 111: @-del $(NAME).lst ! 112: @-del $(NAME).map ! 113: @-del $(NAME).mlt ! 114:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.