-
Notifications
You must be signed in to change notification settings - Fork 21
/
makefile
39 lines (32 loc) · 1.36 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
BIN=/hive/data/inside/pubs/bin
PYTHON=/cluster/software/bin/python2.7
VERSION=2
all:
echo to copy the scripts to the production place on the hive
echo run 'make install'
install:
mkdir -p $(BIN)
rsync --delete -avp ./ $(BIN)/ --exclude test/ --cvs-exclude
# most other hgwdev users don't have the correct python
# in their path, so I have to force it
sed -i 's|/usr/bin/env python|$(PYTHON)|' $(BIN)/pub*
touch $(BIN)/changes_to_files_here_will_get_overwritten
tarball:
cd .. && tar cvfz ~/public_html/pubtools/pubMunch_$(VERSION).tar.gz tools/*
# freezing on windows requires: python2.7 install as native windows installation
# (not cygwin) + native windows cxfreeze install
win:
rm -rf build/exe.win-amd64-2.7/
/cygdrive/c/Python27/python ucscScripts/setup.py build_exe
packWin:
cd build/exe.win-amd64-2.7 && zip -r ../../pubToolsWin64.zip *
uploadWin:
#scp pubToolsWin64.zip [email protected]:public_html/pubtools/
rsync pubToolsWin64.zip [email protected]:public_html/pubtools/ --progress
bigFiles:
tar cvfz bigFiles.tgz data/genes/* data/variants/* data/accessions/uniprot.sqlite data/variants/dbSnp.sqlite data/variants/refGenePsls.9606.sqlite data/variants/seqs.sqlite
mv bigFiles.tgz ~/public_html/pubs/tools/
data:
curl http://hgwdev.soe.ucsc.edu/~max/pubs/tools/bigFiles.tgz | tar xvz
tags:
ctags -R -o ~/.vim/tags/python.ctags pub* lib/*