generate compile_flags for clangd

This commit is contained in:
Omar Polo 2021-02-01 19:30:38 +00:00
parent 3e5418099f
commit d5f4d615cf
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
.PHONY: all static clean regress install .PHONY: all static clean regress install
all: Makefile.local gmid TAGS all: Makefile.local gmid TAGS compile_flags.txt
Makefile.local: configure Makefile.local: configure
./configure ./configure
@ -33,6 +33,7 @@ TAGS: ${SRCS}
clean: clean:
rm -f *.o lex.yy.c y.tab.c y.tab.h y.output gmid gg 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 make -C regress clean
iri_test: iri_test.o iri.o utf8.o iri_test: iri_test.o iri.o utf8.o
@ -46,3 +47,6 @@ install: gmid
mkdir -p ${DESTDIR}${MANDIR}/man1 mkdir -p ${DESTDIR}${MANDIR}/man1
${INSTALL_PROGRAM} gmid ${DESTDIR}${BINDIR} ${INSTALL_PROGRAM} gmid ${DESTDIR}${BINDIR}
${INSTALL_MAN} gmid.1 ${DESTDIR}${MANDIR}/man1 ${INSTALL_MAN} gmid.1 ${DESTDIR}${MANDIR}/man1
compile_flags.txt:
printf "%s\n" ${CFLAGS} > compile_flags.txt