mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
Modified Makefile
This commit is contained in:
parent
24b808fdff
commit
8edc9ad82d
5
Makefile
5
Makefile
@ -7,6 +7,7 @@ OBJECTS=$(SOURCES:.cpp=.o)
|
||||
WPILIB=/var/frc/wpilib
|
||||
EXEC=bin/FRCUserProgram
|
||||
CLEANSER=rm -f
|
||||
READER=$(shell which pv||which cat)
|
||||
|
||||
all : $(OBJECTS)
|
||||
if [ ! -d bin ];then mkdir bin; fi
|
||||
@ -19,10 +20,10 @@ clean:
|
||||
$(CLEANSER) $(OBJECTS) bin/FRCUserProgram
|
||||
|
||||
deploy:
|
||||
@cat bin/FRCUserProgram | ssh admin@$(REMOTEIP) '(rm /home/lvuser/FRCUserProgram)</dev/null;cat > /home/lvuser/FRCUserProgram;chmod a+x /home/lvuser/FRCUserProgram'
|
||||
@$(READER) bin/FRCUserProgram | ssh admin@$(REMOTEIP) '(rm /home/lvuser/FRCUserProgram)</dev/null;cat > /home/lvuser/FRCUserProgram;chmod a+x /home/lvuser/FRCUserProgram'
|
||||
|
||||
debug:
|
||||
@cat bin/FRCUserProgram | ssh admin@$(REMOTEIP) '(rm /home/lvuser/FRCUserProgram)</dev/null;cat > /home/lvuser/FRCUserProgram;chmod a+x /home/lvuser/FRCUserProgram;/home/lvuser/run.sh'
|
||||
@$(READER) bin/FRCUserProgram | ssh admin@$(REMOTEIP) '(rm /home/lvuser/FRCUserProgram)</dev/null;cat > /home/lvuser/FRCUserProgram;chmod a+x /home/lvuser/FRCUserProgram;/home/lvuser/run.sh'
|
||||
|
||||
putkey:
|
||||
@test -d ~/.ssh||mkdir ~/.ssh;test -f ~/.ssh/id_rsa||ssh-keygen -t rsa -f ~/.ssh/id_rsa -b 4096 -q -N '';cat ~/.ssh/id_rsa.pub|ssh -v admin@$(REMOTEIP) 'cat >> /tmp/key;mkdir -p ~/.ssh;cat /tmp/key >> ~/.ssh/authorized_keys;rm /tmp/key'
|
||||
|
Loading…
Reference in New Issue
Block a user