mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Create .vimrc files both during all and init
Then make init doesn't have to always be run by configure.
This commit is contained in:
parent
6deb090b48
commit
becf3b42ab
11
Makefile.lib
11
Makefile.lib
@ -126,15 +126,12 @@ CLEAN += $(PROG) $(OBJS)
|
||||
#############################################################################
|
||||
# The main default rules
|
||||
|
||||
all-default: $(OBJS) $(PROGS) $(MAN1) $(MAN5)
|
||||
all-default: $(OBJS) $(PROGS) $(MAN1) $(MAN5) .vimrc
|
||||
|
||||
# Ensure that Makefiles in subdirs are created before we recursive into them
|
||||
init-recursive: init-default
|
||||
|
||||
init-default:
|
||||
@{ echo ':set runtimepath+=.'; \
|
||||
echo ':runtime $(SRC)/config/vimrc'; \
|
||||
} > .vimrc
|
||||
init-default: .vimrc
|
||||
@$(foreach subdir,$(sort $(SUBDIRS)), \
|
||||
$(MKINSTALLDIRS) $(subdir) >/dev/null; \
|
||||
test -e "$(subdir)/Makefile" \
|
||||
@ -166,6 +163,10 @@ ifdef MAN5
|
||||
$(call ncmd,installdata,$(file),$(DESTDIR)$(mandir)/man5);)
|
||||
endif
|
||||
|
||||
.vimrc: $(top_srcdir)/Makefile.lib
|
||||
@{ echo ':set runtimepath+=.'; \
|
||||
echo ':runtime $(top_srcdir)/config/vimrc'; \
|
||||
} > .vimrc
|
||||
|
||||
##############################################################################
|
||||
# Auto-testing infrastructure
|
||||
|
@ -1349,12 +1349,12 @@ abs_srcdir="$(cd "$srcdir" && pwd)"
|
||||
if test "$abs_srcdir" != "$builddir"; then
|
||||
# Bootstrap the Makefile creation
|
||||
echo "include $abs_srcdir/Makefile" > "$builddir/Makefile"
|
||||
"$MAKE" "SRC=$abs_srcdir" init
|
||||
|
||||
# Make cg-status ignore this build directory
|
||||
echo "*" > "$builddir/.gitignore"
|
||||
fi
|
||||
|
||||
"$MAKE" "SRC=$abs_srcdir" init
|
||||
|
||||
dnl ===================================================================
|
||||
dnl Configuration summary
|
||||
dnl ===================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user