X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/41306318777a942420bc4feadbfacf662ea179dc..c16fbf67a040d3a1440cec001ba0de33f25559a4:/nt/Makefile.in diff --git a/nt/Makefile.in b/nt/Makefile.in index 0b7318c9b4..be5bae536f 100644 --- a/nt/Makefile.in +++ b/nt/Makefile.in @@ -1,6 +1,6 @@ ### @configure_input@ -# Copyright (C) 2013 Free Software Foundation, Inc. +# Copyright (C) 2013-2014 Free Software Foundation, Inc. # This file is part of GNU Emacs. @@ -25,6 +25,9 @@ SHELL = /bin/sh CC=@CC@ CFLAGS=@CFLAGS@ +CPPFLAGS = @CPPFLAGS@ +LDFLAGS = @LDFLAGS@ + version=@version@ ## Used in $archlibdir. configuration=@configuration@ @@ -56,6 +59,15 @@ exec_prefix=@exec_prefix@ # to `../configure'. bindir=@bindir@ +# The root of the directory tree for read-only architecture-independent +# data files. ${datadir}, ${infodir} and ${mandir} are based on this. +datarootdir=@datarootdir@ + +# Where to install architecture-independent data files. ${lispdir} +# and ${etcdir} are subdirectories of this. This is set with the +# --datadir option to `../configure'. +datadir=@datadir@ + # Where to install and expect executable files to be run by Emacs # rather than directly by users, and other architecture-dependent # data. ${archlibdir} is usually below this. This is set with the @@ -76,6 +88,8 @@ VPATH=@srcdir@ # The top-level source directory, also set by configure. top_srcdir=@top_srcdir@ +# MinGW CPPFLAGS may use this. +abs_top_srcdir=@abs_top_srcdir@ # ==================== Emacs-specific directories ==================== @@ -93,6 +107,7 @@ archlibdir=@archlibdir@ # ../configure figures out the correct values for these. INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ # By default, we uphold the dignity of our programs. @@ -108,7 +123,7 @@ INSTALLABLES = runemacs${EXEEXT} addpm${EXEEXT} UTILITIES = cmdproxy${EXEEXT} ddeclient${EXEEXT} # Things that Emacs runs during the build process. -DONT_INSTALL = addsection${EXEEXT} +DONT_INSTALL = # All files that are created by the linker, i.e., whose names end in ${EXEEXT}. EXE_FILES = ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL} @@ -129,7 +144,9 @@ BASE_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \ -I. -I${srcdir} ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} +## Unused. LINK_CFLAGS = ${BASE_CFLAGS} ${LDFLAGS} ${CFLAGS} +## Unused. CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS} all: ${EXE_FILES} @@ -141,30 +158,34 @@ all: ${EXE_FILES} $(DESTDIR)${archlibdir}: all @echo @echo "Installing utilities run internally by Emacs." - umask 022; ${MKDIR_P} $(DESTDIR)${archlibdir} - if [ `cd $(DESTDIR)${archlibdir} && /bin/pwd` != `/bin/pwd` ]; then \ + umask 022; ${MKDIR_P} "$(DESTDIR)${archlibdir}" + exp_archlibdir=`cd "$(DESTDIR)${archlibdir}" && /bin/pwd`; \ + if [ "$$exp_archlibdir" != "`/bin/pwd`" ]; then \ for file in ${UTILITIES}; do \ - $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \ + $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file "$(DESTDIR)${archlibdir}/$$file" ; \ done ; \ fi .PHONY: install uninstall mostlyclean clean distclean maintainer-clean -.PHONY: extraclean check tags +.PHONY: bootstrap-clean extraclean check tags install: $(DESTDIR)${archlibdir} @echo @echo "Installing utilities for users to run." - umask 022; ${MKDIR_P} $(DESTDIR)${bindir} + umask 022; ${MKDIR_P} "$(DESTDIR)${bindir}" for file in ${INSTALLABLES} ; do \ - $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} $(DESTDIR)${bindir}/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \ + $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} "$(DESTDIR)${bindir}"/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \ done + ${MKDIR_P} "$(DESTDIR)${datadir}/emacs/$(version)" + $(INSTALL_DATA) ${srcdir}/README.W32 "$(DESTDIR)${datadir}/emacs/$(version)" uninstall: + rm -f "$(DESTDIR)${datadir}/emacs/$(version)/README.W32" for file in ${INSTALLABLES}; do \ - rm -f $(DESTDIR)${bindir}/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \ + rm -f "$(DESTDIR)${bindir}"/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \ done - if [ -d $(DESTDIR)${archlibdir} ]; then \ - (cd $(DESTDIR)${archlibdir} && rm -f ${UTILITIES}) \ + if [ -d "$(DESTDIR)${archlibdir}" ]; then \ + (cd "$(DESTDIR)${archlibdir}" && rm -f ${UTILITIES}) \ fi mostlyclean: @@ -177,7 +198,7 @@ distclean: clean -rm -f TAGS -rm -f Makefile -maintainer-clean: distclean +bootstrap-clean maintainer-clean: distclean true extraclean: maintainer-clean @@ -192,9 +213,6 @@ TAGS: ${EXE_FILES:${EXEEXT}=.c} ../lib-src/etags *.[ch] ## Build the programs -addsection${EXEEXT}: ${srcdir}/addsection.c - $(CC) ${ALL_CFLAGS} ${srcdir}/addsection.c -o addsection${EXEEXT} - addpm${EXEEXT}: ${srcdir}/addpm.c ../src/epaths.h $(CC) ${ALL_CFLAGS} ${srcdir}/addpm.c $(LIBS_ADDPM) -o addpm${EXEEXT}