Ticket #53882: patch-Makefile.diff
File patch-Makefile.diff, 1.6 KB (added by Raimondi (Israel Chauca Fuentes), 8 years ago) |
---|
-
Makefile
SRC = array.c buffer.c libutf.c main.c map.c register.c ring-buffer.c \ 7 7 ui-terminal.c view.c vis.c vis-lua.c vis-modes.c vis-motions.c \ 8 8 vis-operators.c vis-prompt.c vis-text-objects.c $(REGEX_SRC) 9 9 10 ELF = visvis-menu vis-digraph10 ELF = @VISEXEC@ vis-menu vis-digraph 11 11 EXECUTABLES = $(ELF) vis-clipboard vis-complete vis-open 12 12 13 13 MANUALS = $(EXECUTABLES:=.1) … … LDFLAGS_STD ?= -lc 35 35 CFLAGS_VIS = $(CFLAGS_AUTO) $(CFLAGS_TERMKEY) $(CFLAGS_CURSES) $(CFLAGS_ACL) \ 36 36 $(CFLAGS_SELINUX) $(CFLAGS_TRE) $(CFLAGS_LUA) $(CFLAGS_LPEG) $(CFLAGS_STD) 37 37 38 CFLAGS_VIS += -DVIS_PATH=\"${SHAREPREFIX}/ vis\"38 CFLAGS_VIS += -DVIS_PATH=\"${SHAREPREFIX}/@VISDIR@\" 39 39 CFLAGS_VIS += -DCONFIG_HELP=${CONFIG_HELP} 40 40 CFLAGS_VIS += -DCONFIG_CURSES=${CONFIG_CURSES} 41 41 CFLAGS_VIS += -DCONFIG_LUA=${CONFIG_LUA} … … config.h: 57 57 config.mk: 58 58 @touch $@ 59 59 60 vis: config.h config.mk *.c *.h60 @VISEXEC@: config.h config.mk *.c *.h 61 61 ${CC} ${CFLAGS} ${CFLAGS_VIS} ${CFLAGS_EXTRA} ${SRC} ${LDFLAGS} ${LDFLAGS_VIS} -o $@ 62 62 63 63 vis-menu: vis-menu.c … … install: $(ELF) 118 118 chmod 755 ${DESTDIR}${PREFIX}/bin/"$$e"; \ 119 119 done 120 120 @test ${CONFIG_LUA} -eq 0 || { \ 121 echo installing support files to ${DESTDIR}${SHAREPREFIX}/ vis; \122 mkdir -p ${DESTDIR}${SHAREPREFIX}/ vis; \123 cp -r lua/* ${DESTDIR}${SHAREPREFIX}/ vis; \121 echo installing support files to ${DESTDIR}${SHAREPREFIX}/@VISDIR@; \ 122 mkdir -p ${DESTDIR}${SHAREPREFIX}/@VISDIR@; \ 123 cp -r lua/* ${DESTDIR}${SHAREPREFIX}/@VISDIR@; \ 124 124 rm -rf "${DESTDIR}${SHAREPREFIX}/vis/doc"; \ 125 125 } 126 126 @echo installing manual pages to ${DESTDIR}${MANPREFIX}/man1