Mercurial > hg > Applications > virsh-wrapper
annotate Makefile @ 11:422041acef4c
add ie-vagrant
author | taiki |
---|---|
date | Mon, 11 Nov 2013 09:33:36 -1000 |
parents | bff4054ed58f |
children | f194adc597b6 |
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 | |
5 | |
6 all: $(TARGET) $(TARGET2) | |
0
7785dd06c62f
Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 |
7785dd06c62f
Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
8 $(TARGET): $(TARGET).c |
7785dd06c62f
Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 $(CC) $(CFLAGS) $(TARGET).c -o $(TARGET) |
7785dd06c62f
Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
10 sudo chown root $(TARGET) |
5 | 11 sudo chmod 4711 $(TARGET) |
0
7785dd06c62f
Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
12 |
11 | 13 $(TARGET2): $(TARGET2).c |
14 $(CC) $(CFLAGS) $(TARGET2).c -o $(TARGET2) | |
15 sudo chown root $(TARGET2) | |
16 sudo chmod 4711 $(TARGET2) | |
17 | |
18 install: $(TARGET) $(TARGET2) newvm.py | |
7 | 19 install ie-virsh /usr/local/bin/ |
11 | 20 install ie-vagrant /usr/local/bin/ |
7 | 21 install newvm.py /usr/local/bin/ |
22 chmod 4711 /usr/local/bin/ie-virsh | |
11 | 23 chmod 4711 /usr/local/bin/ie-vagrant |
7 | 24 chmod 755 /usr/local/bin/newvm.py |
25 | |
0
7785dd06c62f
Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
26 clean: |
11 | 27 rm -f $(TARGET) $(TARGET2) *.o |