view 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
line wrap: on
line source

TARGET = ie-virsh
CFLAGS = -Wall -O2 -g
TARGET2 = ie-vagrant

INSTALL_DIR = /usr/local/bin


all: $(TARGET) $(TARGET2)

$(TARGET): $(TARGET).c
	$(CC) $(CFLAGS) $(TARGET).c -o $(TARGET)
	sudo chown root $(TARGET)
	sudo chmod 4711 $(TARGET)

$(TARGET2): $(TARGET2).c
	$(CC) $(CFLAGS) $(TARGET2).c -o $(TARGET2)
	sudo chown root $(TARGET2)
	sudo chmod 4711 $(TARGET2)

install: $(TARGET) $(TARGET2) newvm.py
	install ie-virsh $(INSTALL_DIR)
	install ie-vagrant $(INSTALL_DIR)
	install newvm.py $(INSTALL_DIR)
	install vagrant_newvm.py $(INSTALL_DIR)
	install change_vagrantfile.py $(INSTALL_DIR)
	chmod 4711 $(INSTALL_DIR)/ie-virsh
	chmod 4711 $(INSTALL_DIR)/ie-vagrant
	chmod 755 $(INSTALL_DIR)/newvm.py
	chmod 755 $(INSTALL_DIR)/change_vagrantfile.py
	chmod 755 $(INSTALL_DIR)/vagrant_newvm.py

clean:
	rm -f $(TARGET) $(TARGET2) *.o