mirror of
https://github.com/mirror/make.git
synced 2025-02-05 01:00:11 +08:00
Add developer customizations
* .ccls: Configure the ccls LSP server * .dir-locals.el: Reset some parameters for ccls and lsp-mode * .gitignore: Update for GTAGS and ccls * maintMakefile: Don't search hidden directories for sources
This commit is contained in:
parent
214865ed5c
commit
4a31ca461f
28
.ccls
Normal file
28
.ccls
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
clang
|
||||||
|
%c -std=c99
|
||||||
|
%h --include=makeint.h
|
||||||
|
-DHAVE_CONFIG_H
|
||||||
|
-Isrc
|
||||||
|
-Ilib
|
||||||
|
-DLIBDIR="/usr/local/lib"
|
||||||
|
-DINCLUDEDIR="/usr/local/include"
|
||||||
|
-DLOCALEDIR="/usr/local/share/locale"
|
||||||
|
-DMAKE_MAINTAINER_MODE
|
||||||
|
-pthread
|
||||||
|
-isystem
|
||||||
|
/usr/include/guile/2.0
|
||||||
|
-Wall
|
||||||
|
-Wextra
|
||||||
|
-Werror
|
||||||
|
-Wwrite-strings
|
||||||
|
-Wshadow
|
||||||
|
-Wdeclaration-after-statement
|
||||||
|
-Wbad-function-cast
|
||||||
|
-Wformat-security
|
||||||
|
-Wtype-limits
|
||||||
|
-Wunused-but-set-parameter
|
||||||
|
-Wlogical-op
|
||||||
|
-Wpointer-arith
|
||||||
|
-Wignored-qualifiers
|
||||||
|
-Wformat-signedness
|
||||||
|
-Wduplicated-cond
|
17
.dir-locals.el
Normal file
17
.dir-locals.el
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
(
|
||||||
|
(nil . ((bug-reference-bug-regexp . "\\(\\)\\bSV[- ]\\([0-9]+\\)")
|
||||||
|
(bug-reference-url-format . "https://savannah.gnu.org/bugs/?%s")
|
||||||
|
(ccls-initialization-options . (:index (:threads 6
|
||||||
|
:initialBlacklist ("/make-[0-9]" "tests/work/" "/\\.deps" "/\\..*cache" "/\\.git"))))
|
||||||
|
(lsp-file-watch-ignored . ("/\\.git$"
|
||||||
|
"/\\..*cache$"
|
||||||
|
;; autotools content
|
||||||
|
"/\\.deps$"
|
||||||
|
"/autom4te\\.cache$"
|
||||||
|
"/build-aux$"
|
||||||
|
;; make-specific content
|
||||||
|
"/doc/manual$"
|
||||||
|
"/tests/work$"
|
||||||
|
"/make-[0-9]"))
|
||||||
|
))
|
||||||
|
)
|
8
.gitignore
vendored
8
.gitignore
vendored
@ -1,6 +1,10 @@
|
|||||||
# Development artifacts
|
# Development artifacts
|
||||||
ID
|
ID
|
||||||
TAGS
|
TAGS
|
||||||
|
GPATH
|
||||||
|
GRTAGS
|
||||||
|
GTAGS
|
||||||
|
.*cache
|
||||||
.*gdbinit
|
.*gdbinit
|
||||||
.gdb_history
|
.gdb_history
|
||||||
.vscode
|
.vscode
|
||||||
@ -15,7 +19,7 @@ Makefile
|
|||||||
Makefile.in
|
Makefile.in
|
||||||
Basic.mk
|
Basic.mk
|
||||||
aclocal.m4
|
aclocal.m4
|
||||||
autom4te.cache
|
autom4te.cache/
|
||||||
build-aux/
|
build-aux/
|
||||||
config.cache
|
config.cache
|
||||||
config.h
|
config.h
|
||||||
@ -28,7 +32,7 @@ stamp-h1
|
|||||||
.dirstamp
|
.dirstamp
|
||||||
|
|
||||||
# Build artifacts
|
# Build artifacts
|
||||||
.deps
|
.deps/
|
||||||
gmk-default.h
|
gmk-default.h
|
||||||
loadavg
|
loadavg
|
||||||
make
|
make
|
||||||
|
@ -329,7 +329,7 @@ changelog-check:
|
|||||||
po-check:
|
po-check:
|
||||||
if test -f po/POTFILES.in; then \
|
if test -f po/POTFILES.in; then \
|
||||||
grep '^[^#]' po/POTFILES.in | sort > $@-1; \
|
grep '^[^#]' po/POTFILES.in | sort > $@-1; \
|
||||||
$(PERL) -wn -e 'if (/\b_\(/) { $$ARGV eq "./src/makeint.h" || print "$$ARGV\n" and close ARGV }' `find . -name '*.[ch]'` | sed 's,^\./,,' | sort > $@-2; \
|
find [a-z]* -name '*.[ch]' | xargs grep -l '\b_(' | grep -v src/makeint.h | sort > $@-2; \
|
||||||
diff -u $@-1 $@-2 || exit 1; \
|
diff -u $@-1 $@-2 || exit 1; \
|
||||||
rm -f $@-1 $@-2; \
|
rm -f $@-1 $@-2; \
|
||||||
fi
|
fi
|
||||||
@ -371,8 +371,8 @@ gendocs: update-gnuweb update-makeweb
|
|||||||
find '$(MAKEWEBDIR)'/manual \( -name CVS -prune \) -o \( -name '[!.]*' -type f -exec rm -f '{}' \; \)
|
find '$(MAKEWEBDIR)'/manual \( -name CVS -prune \) -o \( -name '[!.]*' -type f -exec rm -f '{}' \; \)
|
||||||
cp -r doc/manual '$(MAKEWEBDIR)'
|
cp -r doc/manual '$(MAKEWEBDIR)'
|
||||||
@echo 'Status of $(MAKEWEBDIR) repo:' && cd '$(MAKEWEBDIR)' \
|
@echo 'Status of $(MAKEWEBDIR) repo:' && cd '$(MAKEWEBDIR)' \
|
||||||
&& cvs -q -n update | grep -v '^M ' \
|
&& cvs -q -n update | grep -v '^M '
|
||||||
&& echo '- cvs add <new files>' \
|
@echo '- cvs add <new files>' \
|
||||||
&& echo '- cvs remove <deleted files>' \
|
&& echo '- cvs remove <deleted files>' \
|
||||||
&& echo '- cvs commit' \
|
&& echo '- cvs commit' \
|
||||||
&& echo '- cvs tag make-$(subst .,-,$(VERSION))'
|
&& echo '- cvs tag make-$(subst .,-,$(VERSION))'
|
||||||
|
Loading…
Reference in New Issue
Block a user