| 1 | ### nextstep/Makefile for GNU Emacs |
| 2 | |
| 3 | ## Copyright (C) 2012-2013 Free Software Foundation, Inc. |
| 4 | |
| 5 | ## This file is part of GNU Emacs. |
| 6 | |
| 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. |
| 11 | ## |
| 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. |
| 16 | ## |
| 17 | ## You should have received a copy of the GNU General Public License |
| 18 | ## along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
| 19 | |
| 20 | ### Commentary: |
| 21 | |
| 22 | ### Code: |
| 23 | SHELL = /bin/sh |
| 24 | |
| 25 | srcdir = @srcdir@ |
| 26 | EXEEXT = @EXEEXT@ |
| 27 | |
| 28 | @SET_MAKE@ |
| 29 | MKDIR_P = @MKDIR_P@ |
| 30 | |
| 31 | ns_appdir = @ns_appdir@ |
| 32 | ns_appbindir = @ns_appbindir@ |
| 33 | ns_appsrc = @ns_appsrc@ |
| 34 | |
| 35 | ${ns_appdir}: ${srcdir}/${ns_appsrc} ${ns_appsrc} |
| 36 | rm -rf ${ns_appdir} |
| 37 | ${MKDIR_P} ${ns_appdir} |
| 38 | ( cd ${srcdir}/${ns_appsrc} ; tar cfh - . ) | \ |
| 39 | ( cd ${ns_appdir} ; umask 022; tar xf - ) |
| 40 | [ `cd ${srcdir} && /bin/pwd` = `/bin/pwd` ] || \ |
| 41 | ( cd ${ns_appsrc} ; tar cfh - . ) | \ |
| 42 | ( cd ${ns_appdir} ; umask 022; tar xf - ) |
| 43 | touch ${ns_appdir} |
| 44 | |
| 45 | ${ns_appbindir}/Emacs: ${ns_appdir} ../src/emacs${EXEEXT} |
| 46 | ${MKDIR_P} ${ns_appbindir} |
| 47 | cp -f ../src/emacs${EXEEXT} ${ns_appbindir}/Emacs |
| 48 | |
| 49 | .PHONY: all |
| 50 | |
| 51 | all: ${ns_appdir} ${ns_appbindir}/Emacs |
| 52 | |
| 53 | |
| 54 | .PHONY: clean distclean maintainer-clean |
| 55 | |
| 56 | clean: |
| 57 | rm -rf ${ns_appdir} |
| 58 | |
| 59 | distclean: clean |
| 60 | rm -f Makefile |
| 61 | rm -f GNUstep/Emacs.base/Resources/Info-gnustep.plist \ |
| 62 | GNUstep/Emacs.base/Resources/Emacs.desktop \ |
| 63 | Cocoa/Emacs.base/Contents/Info.plist \ |
| 64 | Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings |
| 65 | |
| 66 | maintainer-clean: distclean |
| 67 | |
| 68 | ### Makefile.in ends here |