aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2010-08-29 13:08:13 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-29 08:15:23 -0700
commitf4ccd4965003bdef5acbc4e8be988911b428c58f (patch)
treec811f473d1f7f271cbc255db14321a8b9bee2fe2
parent0f05e53f99c07afcd4fa8040c8631bc3caf4de56 (diff)
downloaduemacs-f4ccd4965003bdef5acbc4e8be988911b428c58f.tar.gz
uemacs: Clean up program executable
This patch fixes Makefile 'clean' target to clean up program executable 'em'. Signed-off-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 5ad04ea..5d96580 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,8 @@ export E Q
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
+PROGRAM=em
+
SRC=ansi.c basic.c bind.c buffer.c crypt.c display.c eval.c exec.c \
file.c fileio.c ibmpc.c input.c isearch.c line.c lock.c main.c \
pklock.c posix.c random.c region.c search.c spawn.c tcap.c \
@@ -50,9 +52,9 @@ LFLAGS=-hbx
BINDIR=/usr/bin
LIBDIR=/usr/lib
-em: ${OBJ}
+$(PROGRAM): $(OBJ)
$(E) " LINK " $@
- $(Q) ${CC} ${DEFINES} -o em ${OBJ} ${LIBS}
+ $(Q) $(CC) $(DEFINES) -o $@ $(OBJ) $(LIBS)
SPARSE=sparse
SPARSE_FLAGS=-D__LITTLE_ENDIAN__ -D__x86_64__ -D__linux__ -D__unix__
@@ -62,10 +64,10 @@ sparse:
clean:
$(E) " CLEAN"
- $(Q) rm -f core lintout makeout tags makefile.bak *.o
+ $(Q) rm -f $(PROGRAM) core lintout makeout tags makefile.bak *.o
-install: em
- strip em
+install: $(PROGRAM)
+ strip $(PROGRAM)
cp em ${BINDIR}
cp emacs.hlp ${LIBDIR}
cp emacs.rc ${LIBDIR}/.emacsrc