]> granicus.if.org Git - neomutt/commitdiff
Generate .clang_complete
authorPietro Cerutti <gahr@gahr.ch>
Fri, 6 Apr 2018 09:10:46 +0000 (09:10 +0000)
committerRichard Russon <rich@flatcap.org>
Fri, 6 Apr 2018 12:32:20 +0000 (13:32 +0100)
For users of https://github.com/Rip-Rip/clang_complete, this allows to
always keep the .clang_complete file in sync with CFLAGS.

.clang_complete.in [new file with mode: 0644]
.gitignore
Makefile.autosetup
auto.def

diff --git a/.clang_complete.in b/.clang_complete.in
new file mode 100644 (file)
index 0000000..9189df5
--- /dev/null
@@ -0,0 +1 @@
+@cflags-one-per-line@
index 493297df74d24ea6d686f7211b778d26d105a1b9..1841f8053859995d48b2ce303c32be1df35289ff 100644 (file)
@@ -93,5 +93,6 @@ po/remove-potcdate.sed
 po/remove-potcdate.sin
 po/Rules-quot
 po/neomutt.pot
+.clang_complete
 
 html
index f33e1b72fcd512b3fc92a5a382a15339f76efdcc..c8ebb7a9fe143a026b21f97df303012df6ea96aa 100644 (file)
@@ -313,7 +313,7 @@ uninstall: $(UNINSTALL_TARGETS)
 distclean: clean
        $(RM) $(DEPFILES) conststrings.c config.h config.log doc/neomutt.1 \
                Makefile po/Makefile contrib/Makefile doc/Makefile \
-               test/Makefile autosetup/jimsh0
+               test/Makefile autosetup/jimsh0 .clang_complete
 
 ##############################################################################
 # include generated dependency files
index b6155c8cafcb31612170184ad3c0924e5b371d23..a97908138a56469802de65c0c1bc18faa765793e 100644 (file)
--- a/auto.def
+++ b/auto.def
@@ -898,6 +898,11 @@ define bindir [get-define BINDIR]
 define docdir [get-define PKGDOCDIR]
 make-template doc/neomutt.man doc/neomutt.1
 
+###############################################################################
+# Generate .clang_complete
+define cflags-one-per-line [string map {" " "\n"} [get-define CFLAGS]]
+make-template .clang_complete.in
+
 ###############################################################################
 # Print a summary
 user-notice "Summary of build options: