view Makefile @ 6:b87ef4d884af

add auto define ps name.
author taiki <taiki@cr.ie.u-ryukyu.ac.jp>
date Tue, 02 Sep 2014 06:32:15 -1000
parents dcca39030bd8
children 401d1b8af977
line wrap: on
line source

TARGET = ie-docker
CFLAGS = -Wall -O2 -g

INSTALL_DIR = /usr/local/bin


all: $(TARGET)

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

install: $(TARGET) newvm.py
	install ie-docker $(INSTALL_DIR)
	install newvm.py $(INSTALL_DIR)
	chmod 4711 $(INSTALL_DIR)/ie-docker
	chmod 755 $(INSTALL_DIR)/newvm.py

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