comparison 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
comparison
equal deleted inserted replaced
16:d8ea207162ca 17:fb9f3738a8e6
1 TARGET = ie-virsh 1 TARGET = ie-virsh
2 CFLAGS = -Wall -O2 -g 2 CFLAGS = -Wall -O2 -g
3 TARGET2 = ie-vagrant 3 TARGET2 = ie-vagrant
4
5 INSTALL_DIR = /usr/local/bin
4 6
5 7
6 all: $(TARGET) $(TARGET2) 8 all: $(TARGET) $(TARGET2)
7 9
8 $(TARGET): $(TARGET).c 10 $(TARGET): $(TARGET).c
14 $(CC) $(CFLAGS) $(TARGET2).c -o $(TARGET2) 16 $(CC) $(CFLAGS) $(TARGET2).c -o $(TARGET2)
15 sudo chown root $(TARGET2) 17 sudo chown root $(TARGET2)
16 sudo chmod 4711 $(TARGET2) 18 sudo chmod 4711 $(TARGET2)
17 19
18 install: $(TARGET) $(TARGET2) newvm.py 20 install: $(TARGET) $(TARGET2) newvm.py
19 install ie-virsh /usr/local/bin/ 21 install ie-virsh $(INSTALL_DIR)
20 install ie-vagrant /usr/local/bin/ 22 install ie-vagrant $(INSTALL_DIR)
21 install newvm.py /usr/local/bin/ 23 install newvm.py $(INSTALL_DIR)
22 install change_vagrantfile.py /usr/local/bin/ 24 install vagrant_newvm.py $(INSTALL_DIR)
23 chmod 4711 /usr/local/bin/ie-virsh 25 install change_vagrantfile.py $(INSTALL_DIR)
24 chmod 4711 /usr/local/bin/ie-vagrant 26 chmod 4711 $(INSTALL_DIR)/ie-virsh
25 chmod 755 /usr/local/bin/newvm.py 27 chmod 4711 $(INSTALL_DIR)/ie-vagrant
26 chmod 755 /usr/local/bin/change_vagrantfile.py 28 chmod 755 $(INSTALL_DIR)/newvm.py
29 chmod 755 $(INSTALL_DIR)/change_vagrantfile.py
30 chmod 755 $(INSTALL_DIR)/vagrant_newvm.py
27 31
28 clean: 32 clean:
29 rm -f $(TARGET) $(TARGET2) *.o 33 rm -f $(TARGET) $(TARGET2) *.o