-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
31 lines (29 loc) · 1.05 KB
/
makefile
File metadata and controls
31 lines (29 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
install:
@echo -e 'Installing redish...'
@install -d $(DESTDIR)/usr/share/redish/
@install -d $(DESTDIR)/usr/bin
@install -v -m 755 redish $(DESTDIR)/usr/bin/
@echo -e '\e[0;32mDone!\e[0m'
uninstall:
@echo "Unistalling..."
@rm -rf $(DESTDIR)/usr/share/redish
@rm -rf $(DESTDIR)/usr/bin/redish
@echo "Done!"
package:
@echo 'Starting process to make a new deb...'
@mkdir .temp
@mkdir -p .temp/usr/bin & mkdir -p .temp/usr/share/redish
@cp redish .temp/usr/bin/ & cp redish .temp/usr/share/redish/
@mkdir ./.temp/DEBIAN
@echo "Package: redish" >> ./.temp/DEBIAN/control
@echo "Priority: optional " >> ./.temp/DEBIAN/control
@echo "Section: shells " >> ./.temp/DEBIAN/control
@echo "Maintainer: Harry " >> ./.temp/DEBIAN/control
@echo "Architecture: all " >> ./.temp/DEBIAN/control
@echo "Version: 1.0 " >> ./.temp/DEBIAN/control
@echo "Depends: " >> ./.temp/DEBIAN/control
@echo "Description: redish redis register" >> ./.temp/DEBIAN/control
@sudo chown -R root.root ./.temp
@dpkg -b .temp redish.deb
@echo 'Removing .temp folder...'
@sudo rm -r .temp