1
0
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:
Jonas Fonseca 2006-01-15 22:23:39 +01:00 committed by Jonas Fonseca
parent 6deb090b48
commit becf3b42ab
2 changed files with 8 additions and 7 deletions

View File

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

View File

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