annotate src/ns.mk @ 108730:c554bb2aba83

Handle some HAVE_NS Makefile conditionals with configure. * configure.in (ns_frag): New output file. * src/Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app): Move these rules to ns.mk. * ns.mk: New file. Copyright years based on date of nextstep merge. * msdos/sed1v2.inp(@ns_frag@): Edit to nothing.
author Glenn Morris <rgm@gnu.org>
date Thu, 20 May 2010 17:48:14 -0700
parents
children dedcf813aa69
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
108730
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1 /* autodeps.mk --- src/Makefile fragment for GNU Emacs
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3 Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
5 This file is part of GNU Emacs.
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
6
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
7 GNU Emacs is free software: you can redistribute it and/or modify
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
8 it under the terms of the GNU General Public License as published by
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
9 the Free Software Foundation, either version 3 of the License, or
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
10 (at your option) any later version.
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
11
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
12 GNU Emacs is distributed in the hope that it will be useful,
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
15 GNU General Public License for more details.
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
16
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
19
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
20 Commentary:
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
21
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
22 This is inserted in src/Makefile if HAVE_NS.
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
23
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
24 The only reason this is in a separate file is because $ns_appdir,
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
25 which appears as a target, is empty on non-NS builds. Some makes
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
26 do not like empty targets, even if they are never used. */
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
27
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
28 ${ns_appdir}: ${ns_appsrc}
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
29 rm -fr ${ns_appdir}
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
30 mkdir -p ${ns_appdir}
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
31 ( cd ${ns_appsrc} ; tar cfh - . ) | ( cd ${ns_appdir} ; umask 022; tar xf - )
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
32
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
33 ${ns_appbindir}Emacs: emacs${EXEEXT}
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
34 mkdir -p ${ns_appbindir}
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
35 cp -f emacs${EXEEXT} ${ns_appbindir}Emacs
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
36
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
37 ns-app: ${ns_appdir} ${ns_appbindir}Emacs
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
38
c554bb2aba83 Handle some HAVE_NS Makefile conditionals with configure.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
39 /* ns.mk ends here */