2015-08-20 17:50:21 +00:00
|
|
|
GOOS ?= linux
|
|
|
|
GOARCH ?= arm
|
2015-08-20 21:02:09 +00:00
|
|
|
GOARM ?= 7
|
2015-08-20 17:50:21 +00:00
|
|
|
|
2015-08-15 03:10:16 +00:00
|
|
|
all:
|
2015-09-21 18:01:01 +00:00
|
|
|
GOOS=$(GOOS) GOARCH=$(GOARCH) GOARM=$(GOARM) go get -t -d -v ./...
|
2015-09-19 16:37:52 +00:00
|
|
|
GOOS=$(GOOS) GOARCH=$(GOARCH) GOARM=$(GOARM) go build -ldflags " -X main.stratuxVersion=`git describe --abbrev=0 --tags` -X main.stratuxBuild=`git log -n 1 --pretty=%H`" main/gen_gdl90.go main/traffic.go main/ry835ai.go main/network.go main/managementinterface.go main/sdr.go
|
2015-10-05 14:19:24 +00:00
|
|
|
cd dump978 && make lib
|
2015-08-21 23:49:34 +00:00
|
|
|
|
2015-08-31 03:40:38 +00:00
|
|
|
test:
|
|
|
|
sh -c true
|
|
|
|
|
2015-10-01 21:19:28 +00:00
|
|
|
www:
|
|
|
|
mkdir -p /var/www
|
|
|
|
mkdir -p /var/www/css
|
|
|
|
cp web/css/*.css /var/www/css
|
|
|
|
mkdir -p /var/www/js
|
|
|
|
cp web/js/*.js /var/www/js
|
|
|
|
mkdir -p /var/www/img
|
|
|
|
cp web/img/logo*.png /var/www/img
|
|
|
|
cp web/img/screen*.png /var/www/img
|
|
|
|
mkdir -p /var/www/maui
|
|
|
|
mkdir -p /var/www/maui/js
|
|
|
|
cp web/maui/js/angular-ui-router.min.js /var/www/maui/js
|
|
|
|
cp web/maui/js/mobile-angular-ui.min.js /var/www/maui/js
|
|
|
|
cp web/maui/js/angular.min.js /var/www/maui/js
|
|
|
|
cp web/maui/js/mobile-angular-ui.gestures.min.js /var/www/maui/js
|
|
|
|
cp web/maui/js/mobile-angular-ui.core.min.js /var/www/maui/js
|
|
|
|
mkdir -p /var/www/maui/css
|
|
|
|
cp web/maui/css/mobile-angular-ui-hover.min.css /var/www/maui/css
|
|
|
|
cp web/maui/css/mobile-angular-ui-desktop.min.css /var/www/maui/css
|
|
|
|
cp web/maui/css/mobile-angular-ui-base.min.css /var/www/maui/css
|
|
|
|
mkdir -p /var/www/maui/fonts
|
|
|
|
cp web/maui/fonts/fontawesome-webfont.woff /var/www/maui/fonts
|
|
|
|
mkdir -p /var/www/plates
|
|
|
|
cp web/plates/*.html /var/www/plates
|
|
|
|
mkdir -p /var/www/plates/js
|
|
|
|
cp web/plates/js/*.js /var/www/plates/js
|
|
|
|
cp web/index.html /var/www
|
|
|
|
|
2015-08-21 23:49:34 +00:00
|
|
|
install:
|
|
|
|
cp -f gen_gdl90 /usr/bin/gen_gdl90
|
|
|
|
chmod 755 /usr/bin/gen_gdl90
|
2015-10-05 14:19:24 +00:00
|
|
|
cp -f libdump978.so /usr/lib/
|
2015-10-01 21:19:28 +00:00
|
|
|
|
2015-08-15 03:10:16 +00:00
|
|
|
clean:
|
2015-08-20 06:48:39 +00:00
|
|
|
rm -f gen_gdl90
|