Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
redoxfs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ashton Kemerling
redoxfs
Commits
20fff1a0
Commit
20fff1a0
authored
1 year ago
by
Will Angenent
Browse files
Options
Downloads
Patches
Plain Diff
Adapted Makefile to work with gentoo and MacOS
parent
a7c22cab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+18
-3
18 additions, 3 deletions
Makefile
with
18 additions
and
3 deletions
Makefile
+
18
−
3
View file @
20fff1a0
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
=
1
M
count
=
1024
dd
if
=
/dev/zero
of
=
image.bin
bs
=
1
048576
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment