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
|
autom4te.cache
|
||||||
stamp-h1
|
stamp-h1
|
||||||
.deps
|
.deps
|
||||||
|
.vimrc
|
||||||
elinks
|
elinks
|
||||||
*.swp
|
*.swp
|
||||||
*.patch
|
*.patch
|
||||||
|
11
Makefile.lib
11
Makefile.lib
@ -78,9 +78,10 @@ INCLUDE_ALL=1
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(findstring init,$(MAKECMDGOALS)),)
|
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
|
INCLUDE_ALL=1
|
||||||
|
ifndef SRC
|
||||||
|
SRC = $(shell cd $(top_srcdir) && pwd)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef INCLUDE_ALL
|
ifdef INCLUDE_ALL
|
||||||
@ -131,9 +132,13 @@ all-default: $(OBJS) $(PROGS) $(MAN1) $(MAN5)
|
|||||||
init-recursive: init-default
|
init-recursive: init-default
|
||||||
|
|
||||||
init-default:
|
init-default:
|
||||||
|
@{ 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; \
|
||||||
echo 'include $(SRC)/$(RELPATH)/$(subdir)/Makefile' > $(subdir)/Makefile;)
|
test -e "$(subdir)/Makefile" \
|
||||||
|
|| echo 'include $(SRC)/$(RELPATH)/$(subdir)/Makefile' > $(subdir)/Makefile;)
|
||||||
|
|
||||||
clean-default cleanall-default:
|
clean-default cleanall-default:
|
||||||
@-test -z "$(CLEAN)" || $(RM) $(CLEAN)
|
@-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 shiftwidth=8
|
||||||
:set tabstop=8
|
:set tabstop=8
|
||||||
:set softtabstop=0
|
:set softtabstop=0
|
@ -1348,9 +1348,9 @@ abs_srcdir="$(cd "$srcdir" && pwd)"
|
|||||||
# builddir is always absolute!
|
# builddir is always absolute!
|
||||||
if test "$abs_srcdir" != "$builddir"; then
|
if test "$abs_srcdir" != "$builddir"; then
|
||||||
echo "include $abs_srcdir/Makefile" > "$builddir/Makefile"
|
echo "include $abs_srcdir/Makefile" > "$builddir/Makefile"
|
||||||
"$MAKE" "SRC=$abs_srcdir" init
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
"$MAKE" "SRC=$abs_srcdir" init
|
||||||
|
|
||||||
dnl ===================================================================
|
dnl ===================================================================
|
||||||
dnl Configuration summary
|
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