From f4ccd4965003bdef5acbc4e8be988911b428c58f Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Sun, 29 Aug 2010 13:08:13 +0300 Subject: [PATCH] uemacs: Clean up program executable This patch fixes Makefile 'clean' target to clean up program executable 'em'. Signed-off-by: Pekka Enberg Signed-off-by: Linus Torvalds --- Makefile | 12 +++++++----- 1 file 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