e3f2140502fb40c39ebd38dbedbe7a62353dc116
[demo.git] / vnfs / DAaaS / GoApps / src / hdfs-writer / Makefile
1 # SPDX-license-identifier: Apache-2.0
2 ##############################################################################
3 # Copyright (c) 2019 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
11 GOPATH := $(shell realpath "$(PWD)/../../")
12 #export GOPATH=/Users/rajamoha/projects/demo/vnfs/DAaaS/GoApps
13 export GOPATH ...
14 export GO111MODULE=on
15
16
17
18 all:
19         echo $$GOPATH
20         GOOS=linux GOARCH=amd64
21         @go build -tags netgo -o ./bin/hdfs-writer ./cmd/main.go
22
23 build:
24         echo $$GOPATH
25         GOOS=linux GOARCH=amd64
26         @go build -tags netgo -o ./bin/hdfs-writer ./cmd/main.go
27
28 .PHONY: format
29 format:
30         @go fmt ./...
31
32 .PHONY: clean
33 clean:
34         @find . -name "*so" -delete
35         @rm -f ./bin/hdfs-writer