mirror of
https://github.com/nitanmarcel/isodrive.git
synced 2026-03-13 04:17:24 +00:00
make: add install
This commit is contained in:
6
Makefile
6
Makefile
@@ -3,6 +3,7 @@ CFLAGS = -I./src/include
|
||||
SRCS = src/util.cpp src/configfsisomanager.cpp src/main.cpp
|
||||
OBJS = $(SRCS:.cpp=.o)
|
||||
TARGET = isodrive
|
||||
INSTALL_DIR = /usr/local/bin
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
@@ -12,8 +13,11 @@ $(TARGET): $(OBJS)
|
||||
%.o: %.cpp
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
install: $(TARGET)
|
||||
install $(TARGET) $(INSTALL_DIR)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) $(OBJS)
|
||||
|
||||
.PHONY: all clean
|
||||
.PHONY: all install clean
|
||||
|
||||
|
||||
Reference in New Issue
Block a user