Skip to content

Commit 1ffa0cd

Browse files
committed
Add install and uninstall Makefile targets to show suggested installation
1 parent 4a35105 commit 1ffa0cd

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,14 @@ build/%.o: src/%.cpp | build
2020
.PHONY: clean
2121
clean:
2222
rm -rf build/ bin/
23+
24+
.PHONY: install
25+
install: bin/vramfs
26+
install -d $(DEST)/usr/local/bin/
27+
install bin/vramfs $(DEST)/usr/local/bin/
28+
install fuse3.vramfs $(DEST)/usr/local/bin/
29+
30+
.PHONY: uninstall
31+
uninstall:
32+
$(RM) $(DEST)/usr/local/bin/fuse3.vramfs
33+
$(RM) $(DEST)/usr/local/bin/vramfs

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ OpenCL driver:
3838

3939
* **valgrind:** `make DEBUG=1`
4040

41+
#### Installing
42+
43+
For a recommended way to install see the Makefile’s `install` target. You can
44+
invoke the install target directly be running `sudo make install` after
45+
finishing the build.
46+
4147
#### Mounting
4248

4349
Mount a disk by running `bin/vramfs <mountdir> <size>`. The `mountdir` can be

0 commit comments

Comments
 (0)