build: compile_commands.json → compile_flags.txt
Also have make update it
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
/compile_commands.json
|
||||
/compile_flags.txt
|
||||
/build
|
||||
/docs/*.pdf
|
||||
/ain48
|
||||
|
||||
9
Makefile
9
Makefile
@ -26,8 +26,10 @@ DOCS=$(patsubst docs/%.typ, docs/%.pdf, $(DOCSRC))
|
||||
|
||||
PROGRAM=ain48
|
||||
|
||||
.PHONY: all build docs clean deepclean
|
||||
all: build docs
|
||||
.PHONY: all build docs clean deepclean setup
|
||||
all: setup build docs
|
||||
|
||||
setup: compile_flags.txt
|
||||
|
||||
build: $(PROGRAM)
|
||||
|
||||
@ -44,6 +46,9 @@ deepclean: clean
|
||||
$(RM) $(PROGRAM)
|
||||
$(RM) $(DOCS)
|
||||
|
||||
compile_flags.txt: Makefile
|
||||
printf "%s\n" $(CFLAGS) > $@
|
||||
|
||||
$(PROGRAM): $(OBJS)
|
||||
$(LD) $(LDFLAGS) $(OBJS) -o $@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user