1. 06 Jan, 2016 1 commit
    • Glenn Morris's avatar
      Build tweaks related to tags files. · c6d3c60f
      Glenn Morris authored
      * lib-src/Makefile.in (tagsfiles): New variable.
      (TAGS): Also depend on the source files.  Use our own etags program.
      * lisp/Makefile.in (ETAGS): Add EXEEXT.
      (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3, lisptagsfiles4):
      Remove.
      (tagsfiles): New, replacing lisptagsfiles1 etc.
      Remove irrelevant source files here rather than in the TAGS rule.
      (${ETAGS}): New rule.
      (TAGS): Also depend on the etags executable.
      * lwlib/Makefile.in (EXEEXT): New, set by configure.
      (ETAGS): Add EXEEXT.
      (${ETAGS}): New rule.
      (ctagsfiles): Use "wildcard".
      (TAGS): Also depend on the etags executable.
      * nt/Makefile.in (ETAGS, tagsfiles): New variables.
      (${ETAGS}): New rule.
      (TAGS): Fix dependencies.
      * oldXMenu/Makefile.in (EXEEXT): New, set by configure.
      (ETAGS): New variable, replacing $TAGS.  Use our own etags program.
      Remove "-t" argument.
      (${ETAGS}): New rule.
      (tagsfiles): New variable.
      (TAGS): New rule, with proper dependencies.
      * src/Makefile.in (ETAGS): Add EXEEXT.  Add a build rule.
      (ctagsfiles1, ctagsfiles2): Use "wildcard".
      (ctagsfiles3): Remove.
      (TAGS): Depend on etags.
      (../lisp/TAGS, $(lwlibdir)/TAGS): Let the rules in the relevant
      directories decide if updates are needed.
      c6d3c60f
  2. 09 Jun, 2015 1 commit
  3. 16 May, 2015 1 commit
    • Glenn Morris's avatar
      Replace AC_SUBST_FILE in configure with include in Makefiles. · 48e384d7
      Glenn Morris authored
      * configure.ac (DEPDIR, MKDEPDIR, deps_frag, lwlib_deps_frag)
      (oldxmenu_deps_frag, lisp_frag): Remove output variables/files.
      (AUTO_DEPEND): New output variable.
      * lwlib/Makefile.in (AUTO_DEPEND): New, set by configure.
      (DEPFLAGS, MKDEPDIR): Set directly via conditional.
      (lwlib_deps_frag): Replace by conditional include.
      * lwlib/autodeps.mk: Remove file.
      * oldXMenu/Makefile.in (AUTO_DEPEND): New, set by configure.
      (DEPFLAGS, MKDEPDIR): Set directly via conditional.
      (oldxmenu_deps_frag): Replace by conditional include.
      * oldXMenu/autodeps.mk: Remove file.
      * src/Makefile.in (AUTO_DEPEND): New, set by configure.
      (DEPFLAGS, MKDEPDIR): Set directly via conditional.
      (lisp_frag): Replace by an include.
      (deps_frag): Replace by conditional include.
      * src/autodeps.mk: Remove file.
      48e384d7
  4. 03 Apr, 2015 1 commit
  5. 04 Jan, 2015 1 commit
    • Paul Eggert's avatar
      Less 'make' chatter for lwlib · 4d12b554
      Paul Eggert authored
      * Makefile.in (AM_V_GEN, am__v_GEN_, am__v_GEN_0, am__v_GEN_1)
      (AM_V_at, am__v_at_, am__v_at_0, am__v_at_1): New macros.
      (liblw.a): Use them.
      4d12b554
  6. 01 Jan, 2015 2 commits
  7. 01 Sep, 2014 1 commit
    • Paul Eggert's avatar
      --enable-silent-warnings now suppresses more chatter. · bc12381e
      Paul Eggert authored
      * INSTALL, etc/NEWS: Document this.
      * lib-src/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
      (am__v_CC_0, am__v_CC_1, AM_V_CCLD, am__v_CCLD_, am__v_CCLD_0)
      (am__v_CCLD_1): New macros, taken from Automake.
      (regex.o, etags${EXEEXT}, ctags${EXEEXT}, ebrowse${EXEEXT})
      (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
      (pop.o, emacsclient${EXEEXT}, emacsclientw${EXEEXT})
      (emacsclientw${EXEEXT}, ntlib.o, hexl${EXEEXT})
      (update-game-score${EXEEXT}): Use them.
      * lwlib/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
      (am__v_CC_0, am__v_CC_1): New macros, taken from Automake.
      (.c.o): Use them.
      * oldXMenu/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
      (am__v_CC_0, am__v_CC_1): New macros, taken from Automake.
      (.c.o): Use them.
      * src/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
      (am__v_CC_0, am__v_CC_1, AM_V_CCLD, am__v_CCLD_, am__v_CCLD_0)
      (am__v_CCLD_1): New macros, taken from Automake.
      (.c.o, .m.o, temacs$(EXEEXT)): Use them.
      bc12381e
  8. 28 Jun, 2014 1 commit
    • Glenn Morris's avatar
      Use gcc auto-dependency information for lwlib and oldXMenu · 93160ec3
      Glenn Morris authored
      * configure.ac (lwlib_deps_frag, oldxmenu_deps_frag): New output files.
      
      * make-dist (lwlib, oldXMenu): Distribute *.mk.
      
      * lwlib/Makefile.in: Move old dependency information to new file deps.mk.
      (MKDIR_P, DEPFLAGS, MKDEPDIR, lwlib_deps_frag):
      New, set by configure.
      (DEPDIR): New variable.
      (ALL_CFLAGS): Add DEPFLAGS.
      (.c.o): Add MKDEPDIR.
      (clean, mostlyclean): Delete DEPDIR.
      
      * lwlib/deps.mk, lwlib/autodeps.mk: New files.
      
      * oldXMenu/Makefile.in: Move old dependency information to new file deps.mk.
      (MKDIR_P, DEPFLAGS, MKDEPDIR, oldxmenu_deps_frag):
      New, set by configure.
      (DEPDIR): New variable.
      (ALL_CFLAGS): Add DEPFLAGS.
      (.c.o): Add MKDEPDIR.
      (clean, mostlyclean): Delete DEPDIR.
      
      * oldXMenu/deps.mk, oldXMenu/autodeps.mk: New files.
      
      * src/deps.mk: Comment update.
      
      * .bzrignore: Ignore lwlib/deps, oldXMenu/deps.
      93160ec3
  9. 15 Jun, 2014 2 commits
    • Glenn Morris's avatar
      Use `make -C' rather than `cd && make' · 0d9f8137
      Glenn Morris authored
      * Makefile.in: Use `make -C' rather than `cd && make' throughout.
      
      * lib-src/Makefile.in (../lib/libgnu.a): Use `make -C' rather than `cd && make'.
      
      * lisp/Makefile.in (leim, semantic): Use `make -C' rather than `cd && make'.
      
      * lwlib/Makefile.in ($(globals_h)): Use `make -C' rather than `cd && make'.
      
      * src/Makefile.in: Use `make -C' rather than `cd && make' throughout.
      0d9f8137
    • Glenn Morris's avatar
      Parallelize clean rules using GNU make features · 0e6929ec
      Glenn Morris authored
      * Makefile.in: (submake_template): New definition.
      (mostlyclean_dirs, clean_dirs, distclean_dirs, maintainer_clean_dirs):
      New variables.
      (mostlyclean, clean, distclean, bootstrap-clean, maintainer-clean)
      (extraclean): Define using each subdirectory as a prequisite.
      
      * lib/Makefile.am (bootstrap-clean):
      * doc/emacs/Makefile.in (bootstrap-clean):
      * doc/lispintro/Makefile.in (bootstrap-clean):
      * doc/lispref/Makefile.in (bootstrap-clean):
      * doc/misc/Makefile.in (bootstrap-clean):
      * lib-src/Makefile.in (bootstrap-clean):
      * lwlib/Makefile.in (bootstrap-clean):
      * nextstep/Makefile.in (bootstrap-clean):
      * nt/Makefile.in (bootstrap-clean):
      * oldXMenu/Makefile.in (bootstrap-clean):
      New rules, for symmetry/simplicity.
      
      * lwlib/Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
      * oldXMenu/Makefile.in (mostlyclean, clean, distclean, maintainer-clean, tags):
      Declare as PHONY.
      0e6929ec
  10. 13 Jun, 2014 1 commit
    • Glenn Morris's avatar
      With GNU make, MFLAGS is not needed · f9d80c51
      Glenn Morris authored
      * Makefile.in (CC, CFLAGS, LDFLAGS, CPPFLAGS, abs_top_srcdir):
      Remove, no longer used.
      (lib, lib-src, lisp, nt, src, blessmail, install-arch-dep)
      (install-nt, install-strip, uninstall, uninstall-nt)
      (mostlyclean, clean, distclean, bootstrap-clean)
      (maintainer-clean, extraclean, TAGS, tags, check, $(DOCS)):
      ($(INSTALL_DOC), $(UNINSTALL_DOC), info, bootstrap, check-declare):
      GNU make automatically passes command-line arguments to sub-makes.
      
      * admin/unidata/Makefile.in (${DSTDIR}/charprop.el):
      GNU make automatically passes command-line arguments to sub-makes.
      
      * lib-src/Makefile.in (../lib/libgnu.a):
      GNU make automatically passes command-line arguments to sub-makes.
      
      * lisp/Makefile.in ($(lisp)/cus-load.el, $(lisp)/finder-inf.el)
      (autoloads, $(lisp)/subdirs.el, compile-main, leim, semantic, compile)
      (compile-always): GNU make automatically passes
      command-line arguments to sub-makes.
      
      * lwlib/Makefile.in ($(globals_h)):
      GNU make automatically passes command-line arguments to sub-makes.
      
      * src/Makefile.in ($(leimdir)/leim-list.el, $(srcdir)/macuvs.h)
      ($(lispsource)/international/charprop.el)
      ($(libsrc)/make-docfile$(EXEEXT), $(lwlibdir)/liblw.a)
      ($(oldXMenudir)/libXMenu11.a, ns-app, .el.elc)
      ($(lispsource)/loaddefs.el, bootstrap-emacs$(EXEEXT)):
      GNU make automatically passes command-line arguments to sub-makes.
      
      * test/automated/Makefile.in (compile-main):
      GNU make automatically passes command-line arguments to sub-makes.
      f9d80c51
  11. 01 Jan, 2014 1 commit
  12. 02 Nov, 2013 2 commits
    • Glenn Morris's avatar
      Use relative filenames in TAGS files. · c617f3d0
      Glenn Morris authored
      * src/Makefile.in (abs_srcdir): Remove it again.
      (.PHONY): Remove frc.
      (maintainer-clean): No more TAGS-LISP file.
      (TAGS): Pass relative file names to etags.
      (../lisp/TAGS): Rename from TAGS-LISP.  Work in ../lisp.
      
      * lisp/Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3)
      (lisptagsfiles4, TAGS): Use relative file names.
      (TAGS-LISP): Remove.
      (maintainer-clean): No more TAGS-LISP file.
      
      * lwlib/Makefile.in (abs_srcdir): Remove it again.
      (ctagsfiles, TAGS): Use relative filenames.
      
      * .bzrignore: Remove TAGS-LISP.
      c617f3d0
    • Glenn Morris's avatar
      Small Makefile cleanup mainly related to tags file generation · b0b9e592
      Glenn Morris authored
      * src/Makefile.in (abs_srcdir): New, set by configure.
      (maintainer-clean): Remove pointless echo.  That should be in the
      top-level Makefile, if anywhere.  Delete TAGS-LISP.
      (extraclean): No s/ and m/ directories for some time.
      (TAGS): Remove no-longer-defined S_FILE.
      Pass absolute filenames to etags once more.
      (TAGS-LISP, $(lwlibdir)/TAGS): Correctly pass ETAGS to sub-makes.
      ($(lwlibdir)/TAGS): Remove useless subshell, check cd return value.
      
      * lisp/Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3)
      (lisptagsfiles4): Use absolute filenames again.
      (TAGS, TAGS-LISP): Not everything needs to run in one line.
      Remove all *loaddefs files, not just the first.  Remove esh-groups.
      (maintainer-clean): Delete TAGS, TAGS-LISP.
      
      * lwlib/Makefile.in (abs_srcdir): New, set by configure.
      (ETAGS, ctagsfiles): New variables.
      (TAGS): Use ETAGS, ctagsfiles.  Use absolute filenames again.
      b0b9e592
  13. 24 Oct, 2013 2 commits
  14. 04 Sep, 2013 1 commit
    • Paul Eggert's avatar
      Makefile improvements. · 224e313d
      Paul Eggert authored
      * Makefile.in (lib): Depend on am--refresh, to avoid a race.
      (src): Remove duplicate dependency on FRC.
      Invoke just one submake, not two.  Avoid the need for 'pwd'.
      * lwlib/Makefile.in (all): Put this first.  Don't use double-colon
      rules, as they are not portable according to POSIX.  Mark as phony.
      * oldXMenu/Makefile.in (all, tags): Don't use double-colon rules, as they
      are not portable according to POSIX.  Mark as phony.
      * src/Makefile.in (config.status): Don't use double-colon rules, as
      they are not portable according to POSIX.  Fix shell typo with `;
      I guess this rule has never been tested?
      (VCSWITNESS): New macro, to override any environment var.
      224e313d
  15. 23 Jul, 2013 1 commit
  16. 01 Jan, 2013 1 commit
  17. 31 Dec, 2012 1 commit
  18. 06 Oct, 2012 1 commit
  19. 01 Aug, 2012 1 commit
  20. 26 Jun, 2012 1 commit
  21. 11 Apr, 2012 1 commit
    • Glenn Morris's avatar
      Repurpose C_SWITCH_X_SYSTEM as GNUSTEP_CFLAGS · 2f097256
      Glenn Morris authored
      This is the only thing left that uses it.
      
      * configure.in (GNUSTEP_CFLAGS): Rename from C_SWITCH_X_SYSTEM.
      
      * src/Makefile.in (GNUSTEP_CFLAGS): Rename from C_SWITCH_X_SYSTEM.
      
      * lwlib/Makefile.in (C_SWITCH_X_SYSTEM): Remove.
      (ALL_CFLAGS): Remove C_SWITCH_X_SYSTEM.
      
      * oldXMenu/Makefile.in (C_SWITCH_X_SYSTEM): Remove.
      (ALL_CFLAGS): Remove C_SWITCH_X_SYSTEM.
      
      * msdos/sedlibmk.inp, msdos/sed1v2.inp:
      GNUSTEP_CFLAGS replaces C_SWITCH_X_SYSTEM.
      2f097256
  22. 09 Apr, 2012 1 commit
    • Paul Eggert's avatar
      configure: new option --enable-gcc-warnings · b8df54ff
      Paul Eggert authored
      I have been using this change for many months in my private copy
      of Emacs, and have used it to find several bugs.  It's mature
      enough to publish now.
      * Makefile.in (GNULIB_MODULES): Add warnings, manywarnings.
      * configure.in: Support --enable-gcc-warnings, in the style of
      other GNU packages such as coreutils.
      (C_WARNINGS_SWITCH): Remove, replacing with...
      (WARN_CFLAGS, GNULIB_WARN_CFLAGS): New variable.
      (PKG_CHECK_MODULES, C_SWITCH_X_SITE): Use -isystem rather than -I,
      when including system files with GCC.
      * etc/NEWS: Mention --enable-gcc-warnings.
      * lib/Makefile.am (AM_CFLAGS): New macro.
      * m4/manywarnings.m4, m4/warnings.m4: New files, from gnulib.
      * lib-src/Makefile.in (C_WARNINGS_SWITCH): Remove.
      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
      (BASE_CFLAGS): Use new macros rather than old.
      * lwlib/Makefile.in (C_WARNINGS_SWITCH): Remove.
      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
      (ALL_CFLAGS): Use new macros rather than old.
      * oldXMenu/Makefile.in (C_WARNINGS_SWITCH): Remove.
      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
      (ALL_CFLAGS): Use new macros rather than old.
      * src/Makefile.in (C_WARNINGS_SWITCH): Remove.
      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
      (ALL_CFLAGS): Use new macros rather than old.
      * src/process.c: Ignore -Wstrict-overflow to work around GCC bug 52904.
      * src/regex.c: Ignore -Wstrict-overflow.  If !emacs, also ignore
      -Wunused-but-set-variable, -Wunused-function, -Wunused-macros,
      -Wunused-result, -Wunused-variable.  This should go away once
      the Emacs and Gnulib regex code is merged.
      (xmalloc, xrealloc): Now static.
      b8df54ff
  23. 11 Jan, 2012 1 commit
  24. 05 Jan, 2012 1 commit
  25. 27 Jun, 2011 1 commit
  26. 06 Jun, 2011 1 commit
  27. 11 Feb, 2011 2 commits
    • Glenn Morris's avatar
      lwlib/Makefile.in misc cleanup. · 8f45ebb8
      Glenn Morris authored
      * lwlib/Makefile.in (USE_X_TOOLKIT, RM, TOOLKIT_DEFINES): Remove.
      (ALL_CFLAGS): Remove -I.
      (config_h, lisp_h, src_h): New variables.
      (globals_h): Rename from $globals.
      ($(globals_h)): Check cd exit status.
      (lwlib.o): Remove special rule.
      (lwlib-utils.o, lwlib.o, lwlib-Xlw.o, lwlib-Xaw.o, lwlib-Xm.o, xlwmenu.o):
      Add lisp.h and config.h to prereqs.
      (lwlib-utils.o): Add lwlib.h to prereqs.
      (lwlib.o): Add lwlib-utils.h and lwlib-Xm.h to prereqs.
      (lwlib-Xlw.o): Add xlwmenu.h to prereqs.
      (xlwmenu.o): Add ../src/xterm.h to prereqs.
      (mostlyclean): Forget about "core" files.
      8f45ebb8
    • Glenn Morris's avatar
      eb5141d9
  28. 09 Feb, 2011 1 commit
  29. 25 Jan, 2011 1 commit
  30. 16 Jan, 2011 1 commit
  31. 02 Jan, 2011 1 commit
  32. 12 Jul, 2010 1 commit
    • Andreas Schwab's avatar
      Properly handle C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS · e6cfa7c3
      Andreas Schwab authored
      * configure.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
      (PROFILING_LDFLAGS): Substitute, don't add them to CFLAGS/LDFLAGS.
      (C_OPTIMIZE_SWITCH): Remove.
      (TEMACS_LDFLAGS2): Add ${PROFILING_LDFLAGS}.
      
      * lib-src/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
      (PROFILING_LDFLAGS): Set from substitution.
      (BASE_CFLAGS): Add  ${C_WARNINGS_SWITCH}.
      (ALL_CFLAGS, CPP_CFLAGS): Add ${PROFILING_CFLAGS}.
      (LINK_CFLAGS): Add ${PROFILING_LDFLAGS}.
      
      * lwlib/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
      substitution.
      (ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.
      
      * oldXMenu/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
      substitution.
      (ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.
      
      * src/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
      (PROFILING_LDFLAGS): Set from substitution.
      (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
      CFLAGS last.
      e6cfa7c3
  33. 15 May, 2010 1 commit
  34. 06 May, 2010 1 commit
    • Glenn Morris's avatar
      Remove some unused Makefile.in variables. · e3cf0cde
      Glenn Morris authored
      * configure.in (AC_PROG_LN_S): Remove test, nothing uses @LN_S@.
      
      * Makefile.in (CPP, C_SWITCH_SYSTEM, ALLOCA, LN_S, C_SWITCH_X_SITE)
      (LD_SWITCH_X_SITE): Remove unused variables.
      
      * lwlib/Makefile.in (CPP, LN_S, TOP, LN): Remove unused variables.
      
      * oldXMenu/Makefile.in (CPP, LN_S, AS, LD, MV, LS, LINTOPTS, LINTLIBFLAG, MAKE)
      (STD_DEFINES, CDEBUGFLAGS, RM_CMD): Remove unused variables.
      
      * src/Makefile.in (CPP, LN_S): Remove unused variables.
      
      * msdos/sed1v2.inp, msdos/sed5x.inp: Remove LN_S, unused.
      e3cf0cde
  35. 04 May, 2010 1 commit