Mercurial > hg > Applications > docker-wrapper
view Makefile @ 18:8efb8b39ae0c
Fix SEGV without arguments
author | atton |
---|---|
date | Tue, 24 Nov 2015 16:59:54 +0900 |
parents | c64a640558ba |
children | 08da58e4a988 |
line wrap: on
line source
TARGET = ie-docker IEDOCKERDIR = /etc/iecloud/ PORTRANGE1 = "10000" PORTRANGE2 = "12000" CFLAGS = -Wall -O0 -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) install $(TARGET) $(INSTALL_DIR) install create.py $(INSTALL_DIR) install portops.py $(INSTALL_DIR) install remove.py $(INSTALL_DIR) chmod 4711 $(INSTALL_DIR)/$(TARGET) chmod 755 $(INSTALL_DIR)/create.py chmod 755 $(INSTALL_DIR)/portops.py chmod 755 $(INSTALL_DIR)/remove.py -mkdir $(IEDOCKERDIR) python numberfile.py $(PORTRANGE1) $(PORTRANGE2) -cp iecloudport.list $(IEDOCKERDIR) clean: rm -f $(TARGET) $(TARGET2) *.o