File tree Expand file tree Collapse file tree 2 files changed +28
-37
lines changed Expand file tree Collapse file tree 2 files changed +28
-37
lines changed Original file line number Diff line number Diff line change
1
+ PREFIX = /usr
2
+ SYSCONFDIR = /etc
3
+
4
+ all :
5
+ @echo Run \' make install\' to install Neofetch.
6
+
7
+ install :
8
+ @echo ' Making directories...'
9
+ @mkdir -p $(DESTDIR )$(PREFIX ) /bin
10
+ @mkdir -p $(DESTDIR )$(PREFIX ) /share/neofetch/ascii/distro
11
+ @mkdir -p $(DESTDIR )$(PREFIX ) /share/man/man1
12
+ @mkdir -p $(DESTDIR )$(SYSCONFDIR ) /neofetch
13
+
14
+ @echo 'Installing binaries...'
15
+ @sed "s|ASCIIDIR|$(PREFIX)/share/neofetch/ascii/distro|g;s|CONFDIR|$(SYSCONFDIR)/neofetch|g" < neofetch > $(DESTDIR)$(PREFIX)/bin/neofetch
16
+ @chmod 755 $(DESTDIR)$(PREFIX)/bin/neofetch
17
+
18
+ @echo 'Installing ASCII files, man page and config file...'
19
+ @cp -p ascii/distro/* $(DESTDIR)$(PREFIX)/share/neofetch/ascii/distro
20
+ @cp -p neofetch.1 $(DESTDIR)$(PREFIX)/share/man/man1
21
+ @cp -p config/config.conf $(DESTDIR)$(SYSCONFDIR)/neofetch/config.conf
22
+
23
+ uninstall :
24
+ @echo ' Removing files...'
25
+ @rm -rf $(DESTDIR )$(PREFIX ) /bin/neofetch
26
+ @rm -rf $(DESTDIR )$(PREFIX ) /share/man/man1/neofetch.1*
27
+ @rm -rf $(DESTDIR )$(PREFIX ) /share/neofetch
28
+ @rm -rf $(DESTDIR )$(SYSCONFDIR ) /neofetch
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments