Mercurial > hg > Applications > virsh-wrapper
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 |
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 | 2 CFLAGS = -Wall -O2 -g |
11 | 3 TARGET2 = ie-vagrant |
4 | |
17 | 5 INSTALL_DIR = /usr/local/bin |
6 | |
11 | 7 |
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 | 13 sudo chmod 4711 $(TARGET) |
0
7785dd06c62f
Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14 |
11 | 15 $(TARGET2): $(TARGET2).c |
16 $(CC) $(CFLAGS) $(TARGET2).c -o $(TARGET2) | |
17 sudo chown root $(TARGET2) | |
18 sudo chmod 4711 $(TARGET2) | |
19 | |
20 install: $(TARGET) $(TARGET2) newvm.py | |
17 | 21 install ie-virsh $(INSTALL_DIR) |
22 install ie-vagrant $(INSTALL_DIR) | |
23 install newvm.py $(INSTALL_DIR) | |
24 install vagrant_newvm.py $(INSTALL_DIR) | |
25 install change_vagrantfile.py $(INSTALL_DIR) | |
26 chmod 4711 $(INSTALL_DIR)/ie-virsh | |
27 chmod 4711 $(INSTALL_DIR)/ie-vagrant | |
28 chmod 755 $(INSTALL_DIR)/newvm.py | |
29 chmod 755 $(INSTALL_DIR)/change_vagrantfile.py | |
30 chmod 755 $(INSTALL_DIR)/vagrant_newvm.py | |
7 | 31 |
0
7785dd06c62f
Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
32 clean: |
11 | 33 rm -f $(TARGET) $(TARGET2) *.o |