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
|
# 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
|
# Ensure that Makefiles in subdirs are created before we recursive into them
|
||||||
init-recursive: init-default
|
init-recursive: init-default
|
||||||
|
|
||||||
init-default:
|
init-default: .vimrc
|
||||||
@{ echo ':set runtimepath+=.'; \
|
|
||||||
echo ':runtime $(SRC)/config/vimrc'; \
|
|
||||||
} > .vimrc
|
|
||||||
@$(foreach subdir,$(sort $(SUBDIRS)), \
|
@$(foreach subdir,$(sort $(SUBDIRS)), \
|
||||||
$(MKINSTALLDIRS) $(subdir) >/dev/null; \
|
$(MKINSTALLDIRS) $(subdir) >/dev/null; \
|
||||||
test -e "$(subdir)/Makefile" \
|
test -e "$(subdir)/Makefile" \
|
||||||
@ -166,6 +163,10 @@ ifdef MAN5
|
|||||||
$(call ncmd,installdata,$(file),$(DESTDIR)$(mandir)/man5);)
|
$(call ncmd,installdata,$(file),$(DESTDIR)$(mandir)/man5);)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
.vimrc: $(top_srcdir)/Makefile.lib
|
||||||
|
@{ echo ':set runtimepath+=.'; \
|
||||||
|
echo ':runtime $(top_srcdir)/config/vimrc'; \
|
||||||
|
} > .vimrc
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Auto-testing infrastructure
|
# Auto-testing infrastructure
|
||||||
|
@ -1349,12 +1349,12 @@ abs_srcdir="$(cd "$srcdir" && pwd)"
|
|||||||
if test "$abs_srcdir" != "$builddir"; then
|
if test "$abs_srcdir" != "$builddir"; then
|
||||||
# Bootstrap the Makefile creation
|
# Bootstrap the Makefile creation
|
||||||
echo "include $abs_srcdir/Makefile" > "$builddir/Makefile"
|
echo "include $abs_srcdir/Makefile" > "$builddir/Makefile"
|
||||||
|
"$MAKE" "SRC=$abs_srcdir" init
|
||||||
|
|
||||||
# Make cg-status ignore this build directory
|
# Make cg-status ignore this build directory
|
||||||
echo "*" > "$builddir/.gitignore"
|
echo "*" > "$builddir/.gitignore"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"$MAKE" "SRC=$abs_srcdir" init
|
|
||||||
|
|
||||||
dnl ===================================================================
|
dnl ===================================================================
|
||||||
dnl Configuration summary
|
dnl Configuration summary
|
||||||
dnl ===================================================================
|
dnl ===================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user