forked from IEEE-VIT/pykitzoid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (26 loc) · 782 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
DEMODIR = ./demo
ALGORITHMDIR = ./algorithms
BUILDOUTPUTDIR = ./src/bin
build_demo: $(DEMODIR)/*
for file in $^ ; do \
if [ -f $$file ] && [ "$${file##*.}" = "go" ] ; then \
file_name=$${file##*/} ; \
file_name=$${file_name%.*} ; \
go build -buildmode=c-shared -o $(DEMODIR)/build/$$file_name.so $$file ; \
fi ; \
done
build: $(ALGORITHMDIR)/*
for file in $^ ; do \
if [ -f $$file ] && [ "$${file##*.}" = "go" ] ; then \
file_name=$${file##*/} ; \
file_name=$${file_name%.*} ; \
go build -buildmode=c-shared -o $(BUILDOUTPUTDIR)/$$file_name.so $$file ; \
fi ; \
done
clear:
rm -rf $(BUILDOUTPUTDIR)/*
clearall:
rm -rf $(BUILDOUTPUTDIR)/*
rm -rf $(DEMODIR)/build/*
dist: build
echo "Creation of the distribution package is not configured yet!"