annotate Makefile @ 7:bff4054ed58f

looks like working...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 13 Nov 2012 11:14:34 +0900
parents 9ecd833b9570
children 422041acef4c
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
0
7785dd06c62f Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
7785dd06c62f Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 $(TARGET): $(TARGET).c
7785dd06c62f Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 $(CC) $(CFLAGS) $(TARGET).c -o $(TARGET)
7785dd06c62f Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 sudo chown root $(TARGET)
5
9ecd833b9570 filtering worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 2
diff changeset
7 sudo chmod 4711 $(TARGET)
0
7785dd06c62f Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
7
bff4054ed58f looks like working...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 5
diff changeset
9 install: $(TARGET) newvm.py
bff4054ed58f looks like working...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 5
diff changeset
10 install ie-virsh /usr/local/bin/
bff4054ed58f looks like working...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 5
diff changeset
11 install newvm.py /usr/local/bin/
bff4054ed58f looks like working...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 5
diff changeset
12 chmod 4711 /usr/local/bin/ie-virsh
bff4054ed58f looks like working...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 5
diff changeset
13 chmod 755 /usr/local/bin/newvm.py
bff4054ed58f looks like working...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 5
diff changeset
14
0
7785dd06c62f Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 clean:
7785dd06c62f Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 rm $(TARGET)