Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.1 KiB

  1. # Autodoc MAKEFILE
  2. #
  3. # Eric Artzt, Program Manager
  4. # Consumer Division, Kids Software Group
  5. # Internet : [email protected]
  6. #
  7. OUTDIR = $(ProjDir)\Doc
  8. TARGET = $(Project)
  9. TITLE = $(TARGET) Help
  10. DOCHDR = $(TARGET) API Reference
  11. AD = $(AdDir)\autodoc.exe
  12. ADHLP = /RH /O$(OUTDIR)\$(TARGET).RTF /D "title=$(TITLE)"
  13. ADDOC = /RD /O$(OUTDIR)\$(TARGET).DOC /D "doc_header=$(DOCHDR)"
  14. ADTAB = 8
  15. HC = hcw /a /e /c
  16. SOURCE = *.cpp *.h *.d *.idl
  17. #FILTER = /x "EVENTS & EXTERNAL"
  18. # Help and Doc targets
  19. target ::
  20. !if !EXIST("$(OUTDIR)")
  21. md $(OUTDIR)
  22. ! endif
  23. target :: $(TARGET).hlp $(TARGET).doc
  24. clean:
  25. if exist $(OUTDIR)\*.rtf del $(OUTDIR)\*.rtf
  26. if exist $(OUTDIR)\$(TARGET).doc del $(OUTDIR)\$(TARGET).doc
  27. if exist $(OUTDIR)\$(TARGET).hlp del $(OUTDIR)\$(TARGET).hlp
  28. # Generate a Help file
  29. $(TARGET).rtf : $(SOURCE)
  30. $(AD) $(FILTER) $(ADHLP) /t$(ADTAB) $(SOURCE)
  31. $(TARGET).hlp : $(TARGET).rtf
  32. $(HC) $(OUTDIR)\$(TARGET).HPJ
  33. # Generate a print documentation file
  34. $(TARGET).doc : $(SOURCE)
  35. $(AD) $(FILTER) $(ADDOC) /t$(ADTAB) $(SOURCE)