Skip to content

Commit

Permalink
Add a simple Makefile to generate a C++ include.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcferretti authored and nbauernfeind committed May 4, 2022
1 parent aec91bf commit 81d41b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions cpp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include
9 changes: 9 additions & 0 deletions cpp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FLATC := $(if $(FLATC),$(FLATC),$(HOME)/dhcpp/local/flatbuffers/bin/flatc)

TARGET_DIR := include

$(TARGET_DIR)/Barrage_generated.h: ../format/Barrage.fbs Makefile | include
$(FLATC) --cpp -o $(TARGET_DIR) $<

$(TARGET_DIR):
mkdir -p include

0 comments on commit 81d41b1

Please sign in to comment.