fordon_greeman / sfetch

fix: .gitignore for the binary Browse files
theidioticdev committed 1d ago parent b7b0374 commit 16b3f622c7a82f85f855fde23b77810334771fd3
Showing 3 changed files with 11 additions and 4 deletions. UnifiedSplit
+1 −0 .gitignore new file mode 100644
@@ -0,0 +1 @@
1 +sfetch
\ No newline at end of file
+5 −4 Makefile
@@ -1,4 +1,5 @@
1 1 CC = tcc
2 +DEST ?= $(HOME)/.local/bin
2 3 # CFLAGS = -Wall -Wextra -pendanic
3 4 TARGET = sfetch
4 5 all: $(TARGET)
@@ -6,10 +7,10 @@ $(TARGET): sfetch.c
6 7 $(CC) $(CFLAGS) -o $(TARGET) sfetch.c
7 8 # $(CC) -o $(TARGET) sfetch.c
8 9 install: $(TARGET)
9 - mkdir -p $(HOME)/local/bin
10 + mkdir -p $(DEST)
10 11 mkdir -p $(HOME)/.config/sfetch
11 - cp $(TARGET) $(HOME)/.local/bin/$(TARGET)
12 - cp sfetch.conf ascii.txt $(HOME/.config/sfetch
12 + cp $(TARGET) $(DEST)/$(TARGET)
13 + cp sfetch.conf ascii.txt $(HOME)/.config/sfetch
13 14 uninstall:
14 - rm -f $(HOME)/.local/bin/$(TARGET)
15 + rm -f $(DEST)/$(TARGET)
15 16 .PHONY: all clean install uninstall
+5 −0 readme.org
@@ -20,3 +20,8 @@ cd sfetch
20 20 make PREFIX=$HOME/.local install # for your specific user
21 21 sudo make install # system-wide
22 22 #+END_SRC
23 +or by using pkger (shameless promotion >:D)
24 +#+BEGIN_SRC sh :eval no
25 +pkger get sfetch
26 +#+END_SRC
27 +