PageRenderTime 67ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/site/w3/lisp/Makefile

https://github.com/AriT93/emacs
Makefile | 140 lines | 99 code | 30 blank | 11 comment | 9 complexity | 7110c1c462e8325fcc00ceddbf43bf87 MD5 | raw file
  1. # Generated automatically from Makefile.in by configure.
  2. # where the w3 lisp files should go
  3. srcdir = .
  4. prefix = /usr
  5. datadir = ${prefix}/share
  6. lispdir = $(prefix)/share/emacs/site-lisp
  7. top_srcdir = ..
  8. confdir = $(datadir)/emacs/w3
  9. ############## no user servicable parts beyond this point ###################
  10. # Have to preload a few things to get a nice clean compile
  11. EMACS = emacs
  12. GNUSDIR = /usr/share/emacs/22.0.93/lisp/gnus/
  13. URLDIR = /usr/share/emacs/22.0.93/lisp/url/
  14. INSTALL = /usr/bin/install -c
  15. RM = rm -f
  16. DEPS = -l $(srcdir)/docomp.el -l $(URLDIR)/url-vars.el -l $(srcdir)/w3-vars.el
  17. # compile with noninteractive and relatively clean environment
  18. BATCHFLAGS = -batch -q -no-site-file
  19. W3_SOURCES = \
  20. css.el \
  21. url-hotlist.el \
  22. w3-cfg.el \
  23. w3-cus.el \
  24. w3-dired.el \
  25. w3-display.el \
  26. w3-emacs.el \
  27. w3-emulate.el \
  28. w3-forms.el \
  29. w3-fast-parse.el \
  30. w3-hot.el \
  31. w3-hotindex.el \
  32. w3-imap.el \
  33. w3-java.el \
  34. w3-keymap.el \
  35. w3-menu.el \
  36. w3-mouse.el \
  37. w3-parse.el \
  38. w3-print.el \
  39. w3-props.el \
  40. w3-speak-table.el \
  41. w3-speak.el \
  42. w3-style.el \
  43. w3-toolbar.el \
  44. w3-vars.el \
  45. w3-widget.el \
  46. w3-xemac.el \
  47. w3.el
  48. UTIL_SOURCES = \
  49. base64.el devices.el font.el images.el md5.el socks.el ssl.el
  50. AUTO_SOURCES = auto-autoloads.el custom-load.el w3-auto.el w3-cfg.el
  51. W3_OBJECTS = $(W3_SOURCES:.el=.elc)
  52. UTIL_OBJECTS = $(UTIL_SOURCES:.el=.elc)
  53. AUTO_OBJECTS = $(AUTO_SOURCES:.el=.elc)
  54. # Some makes appear to choke if I try to do a substitution on a really
  55. # large macro like SOURCES when it included all of these, so lets combine
  56. # everything now that it has been appropriately munged in smaller chunks.
  57. ALLSOURCES = $(W3_SOURCES) $(UTIL_SOURCES) $(AUTO_SOURCES)
  58. ALLOBJECTS = $(W3_OBJECTS) $(UTIL_OBJECTS) $(AUTO_OBJECTS)
  59. # Warning! Currently, the following file can _NOT_ be bytecompiled.
  60. EXTRAS = w3-sysdp.el docomp.el
  61. .SUFFIXES: .elc .el
  62. .el,v.el:
  63. co -q $<
  64. .el.elc:
  65. GNUSDIR=$(GNUSDIR) URLDIR=$(URLDIR) W3SRCDIR=$(srcdir) $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $<
  66. all: $(AUTO_SOURCES) w3
  67. w3-auto.el: auto-autoloads.el
  68. GNUSDIR=$(GNUSDIR) URLDIR=$(URLDIR) W3SRCDIR=$(srcdir) $(EMACS) $(BATCHFLAGS) -l $(srcdir)/docomp.el -f emacs-batch-build-autoloads $(srcdir) auto-autoloads.el
  69. auto-autoloads.el: $(SOURCES)
  70. GNUSDIR=$(GNUSDIR) URLDIR=$(URLDIR) W3SRCDIR=$(srcdir) $(EMACS) $(BATCHFLAGS) -l $(srcdir)/docomp.el -f emacs-batch-build-autoloads $(srcdir) auto-autoloads.el
  71. custom-load.el: $(SOURCES)
  72. GNUSDIR=$(GNUSDIR) URLDIR=$(URLDIR) W3SRCDIR=$(srcdir) $(EMACS) $(BATCHFLAGS) $(DEPS) -f emacs-batch-build-custom-load $(srcdir)
  73. if [ -f cus-load.el ]; then mv cus-load.el custom-load.el; fi
  74. w3-cfg.el: $(srcdir)/w3-cfg.el.in ../config.status
  75. ( cd ../ ; CONFIG_FILES=lisp/w3-cfg.el CONFIG_HEADERS= ./config.status)
  76. w3: $(ALLSOURCES) $(ALLOBJECTS)
  77. @echo Build of w3 complete...
  78. xemacs-w3: $(ALLSOURCES) $(ALLOBJECTS)
  79. @echo Build of w3 complete...
  80. fast: $(ALLSOURCES) $(EXTRAS)
  81. GNUSDIR=$(GNUSDIR) URLDIR=$(URLDIR) W3SRCDIR=$(srcdir) $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $(ALLSOURCES)
  82. @echo Build of w3 complete...
  83. autoloads:
  84. $(EMACS) $(BATCHFLAGS) -eval '(setq autoload-package-name "w3")' -l autoload -f batch-update-directory .
  85. install: all
  86. @echo Installing in $(lispdir)
  87. ( if [ ! -d $(lispdir) ]; then mkdir -p $(lispdir); fi )
  88. for x in $(ALLSOURCES) $(EXTRAS) $(ALLOBJECTS); do \
  89. if [ -f $$x ]; then \
  90. $(INSTALL) -m 644 $$x $(lispdir); \
  91. else \
  92. $(INSTALL) -m 644 $(srcdir)/$$x $(lispdir); \
  93. fi \
  94. done;
  95. distclean: clean
  96. $(RM) config.* Makefile w3-cfg.el w3-auto.el $(AUTO_SOURCES)
  97. clean:
  98. $(RM) *.elc *~
  99. # Automatic makefile rebuilding
  100. Makefile: $(srcdir)/Makefile.in ../config.status
  101. ( cd .. ; CONFIG_FILES=lisp/Makefile ./config.status )
  102. $(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
  103. cd $(top_srcdir) && autoreconf
  104. ../config.status: $(top_srcdir)/configure
  105. cd .. && ./config.status --recheck
  106. # Distribution building
  107. version: $(ALLSOURCES) $(EXTRAS) descrip.mms
  108. test -d $(DIRNAME)/lisp || mkdir -p $(DIRNAME)/lisp
  109. for x in descrip.mms $(ALLSOURCES) $(EXTRAS) w3-cfg.el.in w3-cfg.nt Makefile.in; do $(INSTALL) -m 644 $$x $(DIRNAME)/lisp; done
  110. cd $(DIRNAME)/lisp && $(RM) $(AUTO_SOURCES)