commit d5f4d615cf243269c528a0c7de0cfe5ca52c4c84 from: Omar Polo date: Mon Feb 01 19:30:38 2021 UTC generate compile_flags for clangd commit - 3e5418099fb2d44e0ffa9c65af66657cb28b466b commit + d5f4d615cf243269c528a0c7de0cfe5ca52c4c84 blob - bf255c3fd8e9cbb89156761475a12a81c8df1a06 blob + 7e1be2b69a53bf99ec0697e23cde7e3da3cceb6e --- Makefile +++ Makefile @@ -1,6 +1,6 @@ .PHONY: all static clean regress install -all: Makefile.local gmid TAGS +all: Makefile.local gmid TAGS compile_flags.txt Makefile.local: configure ./configure @@ -33,6 +33,7 @@ TAGS: ${SRCS} clean: rm -f *.o lex.yy.c y.tab.c y.tab.h y.output gmid gg + rm -f compile_flags.txt make -C regress clean iri_test: iri_test.o iri.o utf8.o @@ -46,3 +47,6 @@ install: gmid mkdir -p ${DESTDIR}${MANDIR}/man1 ${INSTALL_PROGRAM} gmid ${DESTDIR}${BINDIR} ${INSTALL_MAN} gmid.1 ${DESTDIR}${MANDIR}/man1 + +compile_flags.txt: + printf "%s\n" ${CFLAGS} > compile_flags.txt