mirror of
https://github.com/omar-polo/gmid.git
synced 2024-09-28 21:41:56 +02:00
generate compile_flags for clangd
This commit is contained in:
parent
3e5418099f
commit
d5f4d615cf
6
Makefile
6
Makefile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user