1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-18 23:36:23 -05:00

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>
This commit is contained in:
Pekka Enberg 2010-08-29 13:08:13 +03:00 committed by Linus Torvalds
parent 0f05e53f99
commit f4ccd49650

View File

@ -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