annotate Makefile @ 17:fb9f3738a8e6

add "box add" and "box list" add python script
author taiki
date Tue, 19 Nov 2013 00:59:48 -1000
parents f194adc597b6
children ea7578513baa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7785dd06c62f Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 TARGET = ie-virsh
2
1a35a6cb23dd fix commands, include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
2 CFLAGS = -Wall -O2 -g
11
422041acef4c add ie-vagrant
taiki
parents: 7
diff changeset
3 TARGET2 = ie-vagrant
422041acef4c add ie-vagrant
taiki
parents: 7
diff changeset
4
17
fb9f3738a8e6 add "box add" and "box list" add python script
taiki
parents: 15
diff changeset
5 INSTALL_DIR = /usr/local/bin
fb9f3738a8e6 add "box add" and "box list" add python script
taiki
parents: 15
diff changeset
6
11
422041acef4c add ie-vagrant
taiki
parents: 7
diff changeset
7
422041acef4c add ie-vagrant
taiki
parents: 7
diff changeset
8 all: $(TARGET) $(TARGET2)
0
7785dd06c62f Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
7785dd06c62f Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 $(TARGET): $(TARGET).c
7785dd06c62f Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 $(CC) $(CFLAGS) $(TARGET).c -o $(TARGET)
7785dd06c62f Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 sudo chown root $(TARGET)
5
9ecd833b9570 filtering worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
13 sudo chmod 4711 $(TARGET)
0
7785dd06c62f Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
11
422041acef4c add ie-vagrant
taiki
parents: 7
diff changeset
15 $(TARGET2): $(TARGET2).c
422041acef4c add ie-vagrant
taiki
parents: 7
diff changeset
16 $(CC) $(CFLAGS) $(TARGET2).c -o $(TARGET2)
422041acef4c add ie-vagrant
taiki
parents: 7
diff changeset
17 sudo chown root $(TARGET2)
422041acef4c add ie-vagrant
taiki
parents: 7
diff changeset
18 sudo chmod 4711 $(TARGET2)
422041acef4c add ie-vagrant
taiki
parents: 7
diff changeset
19
422041acef4c add ie-vagrant
taiki
parents: 7
diff changeset
20 install: $(TARGET) $(TARGET2) newvm.py
17
fb9f3738a8e6 add "box add" and "box list" add python script
taiki
parents: 15
diff changeset
21 install ie-virsh $(INSTALL_DIR)
fb9f3738a8e6 add "box add" and "box list" add python script
taiki
parents: 15
diff changeset
22 install ie-vagrant $(INSTALL_DIR)
fb9f3738a8e6 add "box add" and "box list" add python script
taiki
parents: 15
diff changeset
23 install newvm.py $(INSTALL_DIR)
fb9f3738a8e6 add "box add" and "box list" add python script
taiki
parents: 15
diff changeset
24 install vagrant_newvm.py $(INSTALL_DIR)
fb9f3738a8e6 add "box add" and "box list" add python script
taiki
parents: 15
diff changeset
25 install change_vagrantfile.py $(INSTALL_DIR)
fb9f3738a8e6 add "box add" and "box list" add python script
taiki
parents: 15
diff changeset
26 chmod 4711 $(INSTALL_DIR)/ie-virsh
fb9f3738a8e6 add "box add" and "box list" add python script
taiki
parents: 15
diff changeset
27 chmod 4711 $(INSTALL_DIR)/ie-vagrant
fb9f3738a8e6 add "box add" and "box list" add python script
taiki
parents: 15
diff changeset
28 chmod 755 $(INSTALL_DIR)/newvm.py
fb9f3738a8e6 add "box add" and "box list" add python script
taiki
parents: 15
diff changeset
29 chmod 755 $(INSTALL_DIR)/change_vagrantfile.py
fb9f3738a8e6 add "box add" and "box list" add python script
taiki
parents: 15
diff changeset
30 chmod 755 $(INSTALL_DIR)/vagrant_newvm.py
7
bff4054ed58f looks like working...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 5
diff changeset
31
0
7785dd06c62f Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 clean:
11
422041acef4c add ie-vagrant
taiki
parents: 7
diff changeset
33 rm -f $(TARGET) $(TARGET2) *.o