From 58b851f4f6a5feb85a6bdd52087b34f43e47a178 Mon Sep 17 00:00:00 2001 From: q3aql Date: Sat, 2 Jun 2018 15:57:11 +0200 Subject: [PATCH] Makefile --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 Makefile diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..3a65949 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +################################################# +# Instalar easy-samba 1.4 (q3aql) # +################################################# + +PREFIX=/usr + +install: + mkdir -p /opt/easy-samba/ + mkdir -p $(PREFIX)/share/icons/easy-samba/ + cp -rf icon/easy-samba.png $(PREFIX)/share/icons/easy-samba/ + cp -rf icon/easy-samba.desktop $(PREFIX)/share/applications/ + cp -rf src/easy-samba $(PREFIX)/bin + cp -rf src/easy-samba-gtk $(PREFIX)/bin + cp -rf src/easy-samba-gtk-admin $(PREFIX)/bin + chmod 755 $(PREFIX)/bin/easy-samba + chmod 755 $(PREFIX)/bin/easy-samba-gtk + chmod 755 $(PREFIX)/bin/easy-samba-gtk-admin + +uninstall: + rm -rf $(PREFIX)/bin/easy-samba + rm -rf $(PREFIX)/bin/easy-samba-gtk + rm -rf $(PREFIX)/bin/easy-samba-gtk-admin + rm -rf $(PREFIX)/share/icons/easy-samba/easy-samba.png + rm -rf $(PREFIX)/share/applications/easy-samba.desktop