Skip to content

Commit

Permalink
fixed build error in macOS due to sed syntax. Updated all target to b…
Browse files Browse the repository at this point in the history
…uild required targets.
  • Loading branch information
chaitanyaprem committed Aug 21, 2023
1 parent a8939fd commit 472a8ad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ifeq ($(RLN), true)
BUILD_TAGS := gowaku_rln
endif

all: build
all: build static-library dynamic-library mobile-android mobile-ios test-ci docker-image

deps: lint-install

Expand Down Expand Up @@ -130,7 +130,11 @@ static-library:
-o ./build/lib/libgowaku.a \
./library/c/
@echo "Static library built:"
ifeq ($(detected_OS),Darwin)
sed -i '' -e "s/#include <cgo_utils.h>//gi" ./build/lib/libgowaku.h
else
sed -i "s/#include <cgo_utils.h>//gi" ./build/lib/libgowaku.h
endif
@ls -la ./build/lib/libgowaku.*

dynamic-library:
Expand All @@ -141,7 +145,11 @@ dynamic-library:
-tags="${BUILD_TAGS}" \
-o ./build/lib/libgowaku.$(GOBIN_SHARED_LIB_EXT) \
./library/c/
ifeq ($(detected_OS),Darwin)
sed -i '' -e "s/#include <cgo_utils.h>//gi" ./build/lib/libgowaku.h
else
sed -i "s/#include <cgo_utils.h>//gi" ./build/lib/libgowaku.h
endif
ifeq ($(detected_OS),Linux)
cd ./build/lib && \
mv ./libgowaku.$(GOBIN_SHARED_LIB_EXT) ./libgowaku.$(GOBIN_SHARED_LIB_EXT).0 && \
Expand Down

0 comments on commit 472a8ad

Please sign in to comment.