1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00: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
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

View File

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