Mercurial > hg > Applications > virsh-wrapper
annotate Makefile @ 40:984f31ae74d5
Fix student identifier
author | atton |
---|---|
date | Sun, 15 Nov 2015 12:20:00 +0900 |
parents | ebeeb6c20d0a |
children | b8887c40f8b8 |
rev | line source |
---|---|
0
7785dd06c62f
Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 TARGET = ie-virsh |
36 | 2 CFLAGS = -Wall -O0 -g |
11 | 3 |
17 | 4 INSTALL_DIR = /usr/local/bin |
5 | |
11 | 6 |
31 | 7 all: $(TARGET) |
0
7785dd06c62f
Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
8 |
7785dd06c62f
Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 $(TARGET): $(TARGET).c |
7785dd06c62f
Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
10 $(CC) $(CFLAGS) $(TARGET).c -o $(TARGET) |
7785dd06c62f
Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
11 sudo chown root $(TARGET) |
5 | 12 sudo chmod 4711 $(TARGET) |
0
7785dd06c62f
Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
13 |
11 | 14 install: $(TARGET) $(TARGET2) newvm.py |
17 | 15 install ie-virsh $(INSTALL_DIR) |
16 install newvm.py $(INSTALL_DIR) | |
17 chmod 4711 $(INSTALL_DIR)/ie-virsh | |
18 chmod 755 $(INSTALL_DIR)/newvm.py | |
7 | 19 |
0
7785dd06c62f
Virsh Wrapper initial version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
20 clean: |
11 | 21 rm -f $(TARGET) $(TARGET2) *.o |