d31fd66b84f4d81be03124929c680e8d6cabb985
[demo.git] / vnfs / DAaaS / GoApps / src / hdfs-writer / Makefile
1 # SPDX-license-identifier: Apache-2.0
2 ##############################################################################
3 # Copyright (c) 2018 Intel Corporation
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 GOPATH := $(shell realpath "$(PWD)/../../")
11
12 export GOPATH ...
13 export GO111MODULE=on
14
15
16
17 all:
18         echo $$GOPATH
19         @go build -tags netgo -o ./bin/hdfs-writer ./cmd/main.go
20
21 build:
22         echo $$GOPATH
23         @go build -tags netgo -o ./bin/hdfs-writer ./cmd/main.go
24
25
26 .PHONY: clean
27 clean:
28         @find . -name "*so" -delete
29         @rm -f ./bin/hdfs-writer