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:
parent
2a4afa22b1
commit
2748d043f9
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,6 +13,7 @@ depcomp
|
||||
autom4te.cache
|
||||
stamp-h1
|
||||
.deps
|
||||
.vimrc
|
||||
elinks
|
||||
*.swp
|
||||
*.patch
|
||||
|
11
Makefile.lib
11
Makefile.lib
@ -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)
|
||||
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,3 +1,5 @@
|
||||
" Master vimrc file for the ELinks project
|
||||
|
||||
:set shiftwidth=8
|
||||
:set tabstop=8
|
||||
:set softtabstop=0
|
@ -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
2
debian/.vimrc
vendored
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
2
src/cache/.vimrc
vendored
2
src/cache/.vimrc
vendored
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
@ -1,2 +0,0 @@
|
||||
:set runtimepath+=.
|
||||
:runtime ../../../.vimrc
|
Loading…
Reference in New Issue
Block a user