-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
45 lines (35 loc) · 1.09 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
#SHELL:=/bin/bash
PKG:=ais-areanotice
VERSION := ${shell grep 'version' ais_areanotice/__init__.py | cut -d\' -f 2}
DIST_TAR=dist/${PKG}-${VERSION}.tar.bz2
default:
@echo
@echo " *** Welcome to ${PKG} ${VERSION} ***"
@echo
@echo " AIS Binary Message Reference Implementation"
@echo
@echo " test - run unit tests"
@echo " samples.txt - create the published test dataset"
@echo " sdist - Build a source distribution tar ball"
@echo " clean - Remove temporary files"
sdist: samples.txt clean
./setup.py sdist --formats=bztar
.PHONY: test
test:
python setup.py test
clean:
rm -f *.pyc
rm -f */*.pyc
rm -rf */__pycache__
rm -rf *.egg-info
find . -name .DS_Store | xargs rm -f
real-clean: clean
rm -f MANIFEST
rm -rf build dist
register:
./setup.py register
samples.txt: build_samples.py imo_001_22_area_notice.py
./ais_areanotice/build_samples.py > samples.txt
samples-upload:
scp samples.txt vislab-ccom:www/software/ais-areanotice-py/samples/samples-`date +%Y%m%d`.txt
scp samples.kml vislab-ccom:www/software/ais-areanotice-py/samples/samples-`date +%Y%m%d`.kml