Skip to content
Snippets Groups Projects
Commit 20fff1a0 authored by Will Angenent's avatar Will Angenent
Browse files

Adapted Makefile to work with gentoo and MacOS

parent a7c22cab
No related branches found
No related tags found
No related merge requests found
UNAME := $(shell uname)
ifeq ($(UNAME),Darwin)
FUMOUNT=umount
else ifeq ($(UNAME),FreeBSD)
FUMOUNT=sudo umount
else
# Detect which version of the fusermount binary is available.
ifneq (, $(shell which fusermount3))
FUMOUNT=fusermount3 -u
else
FUMOUNT=fusermount -u
endif
endif
image.bin:
dd if=/dev/zero of=image.bin bs=1M count=1024
dd if=/dev/zero of=image.bin bs=1048576 count=1024
cargo build --release --bin redoxfs-mkfs
target/release/redoxfs-mkfs image.bin
......@@ -10,12 +25,12 @@ mount: image.bin FORCE
unmount: FORCE
sync
-fusermount -u image
-${FUMOUNT} image
rm -rf image
clean: FORCE
sync
-fusermount -u image
-${FUMOUNT} image
rm -rf image image.bin
cargo clean
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment