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:
@@ -3,6 +3,7 @@ CFLAGS = -I./src/include
|
|||||||
SRCS = src/util.cpp src/configfsisomanager.cpp src/main.cpp
|
SRCS = src/util.cpp src/configfsisomanager.cpp src/main.cpp
|
||||||
OBJS = $(SRCS:.cpp=.o)
|
OBJS = $(SRCS:.cpp=.o)
|
||||||
TARGET = isodrive
|
TARGET = isodrive
|
||||||
|
INSTALL_DIR = /usr/local/bin
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
@@ -12,8 +13,11 @@ $(TARGET): $(OBJS)
|
|||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
|
install: $(TARGET)
|
||||||
|
install $(TARGET) $(INSTALL_DIR)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(TARGET) $(OBJS)
|
rm -f $(TARGET) $(OBJS)
|
||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all install clean
|
||||||
|
|
||||||
|
|||||||
@@ -8,13 +8,15 @@
|
|||||||
|
|
||||||
* `make`
|
* `make`
|
||||||
|
|
||||||
|
* `sudo make install` (optional)
|
||||||
|
|
||||||
mount
|
mount
|
||||||
|
|
||||||
* `sudo ./isodrive /full/path/to/file.iso`
|
* `sudo isodrive /full/path/to/file.iso`
|
||||||
|
|
||||||
umount
|
umount
|
||||||
|
|
||||||
* `sudo ./isodrive`
|
* `sudo isodrive`
|
||||||
|
|
||||||
|
|
||||||
Inspired by https://github.com/fredldotme/ISODriveUT
|
Inspired by https://github.com/fredldotme/ISODriveUT
|
||||||
|
|||||||
Reference in New Issue
Block a user