aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2026-03-14 23:28:36 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2026-03-14 23:28:36 +0800
commit8b9e5f19cdc509be44abe39ef0289c28739a2794 (patch)
tree3dbcf1ef4fcd8baff375705bdd6dfe358fd09225 /Makefile
parentb7da442922fa92d3926d66aa8d428e7f363703c3 (diff)
downloadsfm-0.1.tar.gz
sfm-0.1.zip
initial commit0.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5bfd920
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,33 @@
+# Makefile for sfm - Simple File Manager
+
+PREFIX ?= /usr/local
+BINDIR ?= $(PREFIX)/bin
+MANDIR ?= $(PREFIX)/share/man/man1
+DOCDIR ?= $(PREFIX)/share/doc/sfm
+
+INSTALL ?= install
+RM ?= rm -f
+
+.PHONY: all install uninstall clean
+
+all:
+ @echo "sfm is a shell script — nothing to build."
+ @echo "Run 'make install' to install."
+
+install:
+ @echo "Installing sfm to $(BINDIR)/sfm ..."
+ $(INSTALL) -d $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 sfm $(DESTDIR)$(BINDIR)/sfm
+ @echo "Installing README to $(DOCDIR) ..."
+ $(INSTALL) -d $(DESTDIR)$(DOCDIR)
+ $(INSTALL) -m 644 README.txt $(DESTDIR)$(DOCDIR)/README.txt
+ @echo "Done. Run 'sfm' to start."
+
+uninstall:
+ @echo "Removing sfm ..."
+ $(RM) $(DESTDIR)$(BINDIR)/sfm
+ $(RM) -r $(DESTDIR)$(DOCDIR)
+ @echo "Done."
+
+clean:
+ @echo "Nothing to clean."