* admin/gitmerge.el (gitmerge-missing):
[emacs.git] / nextstep / Makefile.in
blob5ddf484fe8fa22be1ba43017763e12ef1596fdff
1 ### @configure_input@
3 ## Copyright (C) 2012-2017 Free Software Foundation, Inc.
5 ## This file is part of GNU Emacs.
7 ## GNU Emacs is free software: you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation, either version 3 of the License, or
10 ## (at your option) any later version.
12 ## GNU Emacs is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ## GNU General Public License for more details.
17 ## You should have received a copy of the GNU General Public License
18 ## along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
20 ### Commentary:
22 ### Code:
23 SHELL = @SHELL@
25 srcdir = @srcdir@
26 abs_builddir = @abs_builddir@
27 abs_top_builddir = @abs_top_builddir@
28 EXEEXT = @EXEEXT@
30 # abs_top_srcdir may contain ".."
31 top_srcdir_abs = $(shell cd @top_srcdir@; pwd -P)
33 MKDIR_P = @MKDIR_P@
35 ## Emacs.app.
36 ns_appdir = @ns_appdir@
37 ## GNUstep: ns_appdir; macOS: ns_appdir/Contents/MacOS
38 ns_appbindir = @ns_appbindir@
39 ## GNUstep/Emacs.base or Cocoa/Emacs.base.
40 ns_appsrc = @ns_appsrc@
41 ## GNUstep: GNUstep/Emacs.base/Resources/Info-gnustep.plist
42 ## macOS: Cocoa/Emacs.base/Contents/Info.plist
43 ns_check_file = @ns_appdir@/@ns_check_file@
45 .PHONY: all
47 all: ${ns_appdir} ${ns_appbindir}/Emacs
49 ${ns_check_file} ${ns_appdir}: ${srcdir}/${ns_appsrc} ${ns_appsrc}
50 rm -rf ${ns_appdir}
51 ${MKDIR_P} ${ns_appdir}
52 ( cd ${srcdir}/${ns_appsrc} ; tar cfh - . ) | \
53 ( cd ${ns_appdir} ; umask 022; tar xf - )
54 [ "`cd ${srcdir} && /bin/pwd`" = "`/bin/pwd`" ] || \
55 ( cd ${ns_appsrc} ; tar cfh - . ) | \
56 ( cd ${ns_appdir} ; umask 022; tar xf - )
57 touch ${ns_appdir}
59 ## Don't create ns_appbindir via an order-only prerequisite, because
60 ## on GNUstep ns_appbindir and ns_bindir are the same, so
61 ## the rule for ns_appbindir would conflict with that for ns_appdir.
62 ${ns_appbindir}/Emacs: ${ns_appdir} ${ns_check_file} ../src/emacs${EXEEXT}
63 ${MKDIR_P} ${ns_appbindir}
64 cp -f ../src/emacs${EXEEXT} $@
66 .PHONY: FORCE
68 ../src/emacs${EXEEXT}: FORCE
69 ${MAKE} -C ../src $(notdir $@)
71 # create a fake installation pointing back to the source tree
72 # to run GUI Emacs in-place
73 .PHONY: links
75 links: ../src/emacs${EXEEXT}
76 for d in $(shell cd ${srcdir}/${ns_appsrc}; find . -type d); do ${MKDIR_P} ${ns_appdir}/$$d; done
77 for f in $(shell cd ${srcdir}/${ns_appsrc}; find . -type f); do ln -s $(shell cd ${srcdir}; pwd -P)/${ns_appsrc}/$$f ${ns_appdir}/$$f; done
78 for d in $(shell cd ${ns_appsrc}; find . -type d); do ${MKDIR_P} ${ns_appdir}/$$d; done
79 for f in $(shell cd ${ns_appsrc}; find . -type f); do ln -s $(shell cd ${ns_appsrc}; pwd -P)/$$f ${ns_appdir}/$$f; done
80 ln -s $(top_srcdir_abs)/lisp ${ns_appdir}/Contents/Resources
81 ln -s $(top_srcdir_abs)/info ${ns_appdir}/Contents/Resources
82 ${MKDIR_P} ${ns_appbindir}
83 ln -s $(abs_top_builddir)/src/emacs${EXEEXT} ${ns_appbindir}/Emacs
84 ln -s $(abs_top_builddir)/lib-src ${ns_appbindir}/bin
85 ln -s $(abs_top_builddir)/lib-src ${ns_appbindir}/libexec
86 ${MKDIR_P} ${ns_appdir}/Contents/Resources/etc
87 for f in $(shell cd $(top_srcdir_abs)/etc; ls); do ln -s $(top_srcdir_abs)/etc/$$f ${ns_appdir}/Contents/Resources/etc; done
88 ln -s $(abs_top_builddir)/etc/DOC ${ns_appdir}/Contents/Resources/etc
89 @echo if the next find prints something, the installation failed
90 find ${ns_appdir} -exec test \! -e {} \; -ls
92 .PHONY: clean distclean bootstrap-clean maintainer-clean
94 clean:
95 rm -rf ${ns_appdir}
97 distclean: clean
98 rm -f Makefile
99 rm -f GNUstep/Emacs.base/Resources/Info-gnustep.plist \
100 GNUstep/Emacs.base/Resources/Emacs.desktop \
101 Cocoa/Emacs.base/Contents/Info.plist \
102 Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings
104 bootstrap-clean maintainer-clean: distclean
106 ### Makefile.in ends here