mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-21 00:26:27 -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:
parent
0f05e53f99
commit
f4ccd49650
12
Makefile
12
Makefile
@ -14,6 +14,8 @@ export E Q
|
|||||||
|
|
||||||
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
|
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 \
|
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 \
|
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 \
|
pklock.c posix.c random.c region.c search.c spawn.c tcap.c \
|
||||||
@ -50,9 +52,9 @@ LFLAGS=-hbx
|
|||||||
BINDIR=/usr/bin
|
BINDIR=/usr/bin
|
||||||
LIBDIR=/usr/lib
|
LIBDIR=/usr/lib
|
||||||
|
|
||||||
em: ${OBJ}
|
$(PROGRAM): $(OBJ)
|
||||||
$(E) " LINK " $@
|
$(E) " LINK " $@
|
||||||
$(Q) ${CC} ${DEFINES} -o em ${OBJ} ${LIBS}
|
$(Q) $(CC) $(DEFINES) -o $@ $(OBJ) $(LIBS)
|
||||||
|
|
||||||
SPARSE=sparse
|
SPARSE=sparse
|
||||||
SPARSE_FLAGS=-D__LITTLE_ENDIAN__ -D__x86_64__ -D__linux__ -D__unix__
|
SPARSE_FLAGS=-D__LITTLE_ENDIAN__ -D__x86_64__ -D__linux__ -D__unix__
|
||||||
@ -62,10 +64,10 @@ sparse:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(E) " 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
|
install: $(PROGRAM)
|
||||||
strip em
|
strip $(PROGRAM)
|
||||||
cp em ${BINDIR}
|
cp em ${BINDIR}
|
||||||
cp emacs.hlp ${LIBDIR}
|
cp emacs.hlp ${LIBDIR}
|
||||||
cp emacs.rc ${LIBDIR}/.emacsrc
|
cp emacs.rc ${LIBDIR}/.emacsrc
|
||||||
|
Loading…
Reference in New Issue
Block a user