1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Autogenerate .vimrc files and put the master in config/vimrc

This changes the init target to be idempotent: most importantly it will now
never overwrite a Makefile if it exists. Additionally 'make init' will
generate the .vimrc files. Yay, no more stupid 'added fairies' commits! ;)
This commit is contained in:
Jonas Fonseca 2006-01-15 18:37:34 +01:00 committed by Jonas Fonseca
parent 2a4afa22b1
commit 2748d043f9
73 changed files with 12 additions and 142 deletions

1
.gitignore vendored
View File

@ -13,6 +13,7 @@ depcomp
autom4te.cache
stamp-h1
.deps
.vimrc
elinks
*.swp
*.patch

View File

@ -78,9 +78,10 @@ INCLUDE_ALL=1
endif
ifneq ($(findstring init,$(MAKECMDGOALS)),)
# FIXME: Detect when $(subdir)/Makefile is $(srcdir)/$(subdir)/Makefile
# and error out so the user won't overwrite the 'master' Makefiles.
INCLUDE_ALL=1
ifndef SRC
SRC = $(shell cd $(top_srcdir) && pwd)
endif
endif
ifdef INCLUDE_ALL
@ -131,9 +132,13 @@ all-default: $(OBJS) $(PROGS) $(MAN1) $(MAN5)
init-recursive: init-default
init-default:
@{ echo ':set runtimepath+=.'; \
echo ':runtime $(SRC)/config/vimrc'; \
} > .vimrc
@$(foreach subdir,$(sort $(SUBDIRS)), \
$(MKINSTALLDIRS) $(subdir) >/dev/null; \
echo 'include $(SRC)/$(RELPATH)/$(subdir)/Makefile' > $(subdir)/Makefile;)
test -e "$(subdir)/Makefile" \
|| echo 'include $(SRC)/$(RELPATH)/$(subdir)/Makefile' > $(subdir)/Makefile;)
clean-default cleanall-default:
@-test -z "$(CLEAN)" || $(RM) $(CLEAN)

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,3 +1,5 @@
" Master vimrc file for the ELinks project
:set shiftwidth=8
:set tabstop=8
:set softtabstop=0

View File

@ -1348,9 +1348,9 @@ abs_srcdir="$(cd "$srcdir" && pwd)"
# builddir is always absolute!
if test "$abs_srcdir" != "$builddir"; then
echo "include $abs_srcdir/Makefile" > "$builddir/Makefile"
"$MAKE" "SRC=$abs_srcdir" init
fi
"$MAKE" "SRC=$abs_srcdir" init
dnl ===================================================================
dnl Configuration summary

2
debian/.vimrc vendored
View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

2
src/cache/.vimrc vendored
View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc

View File

@ -1,2 +0,0 @@
:set runtimepath+=.
:runtime ../../../.vimrc