summaryrefslogtreecommitdiff
path: root/frontend/gui/Makefile
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-06-12 02:41:32 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-06-12 02:41:32 +0100
commitbc02c657543a7d2be99ffbec9d002d698941f56f (patch)
tree14c405f483dd8eeec607505fae5713b9a3b6788c /frontend/gui/Makefile
parent8551f92e8f3f0cb51162635004e7b5ef86fb3e3e (diff)
merge epkg into sisyphus : from now on sisyphus-cli will be the CLI frontend (old epkg) && sisyphus-gui will be the GUI frontend ;; the backend libsisyphus.sh will be ported to python as well
Diffstat (limited to 'frontend/gui/Makefile')
-rw-r--r--frontend/gui/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/frontend/gui/Makefile b/frontend/gui/Makefile
new file mode 100644
index 0000000..67236e1
--- /dev/null
+++ b/frontend/gui/Makefile
@@ -0,0 +1,40 @@
+SUBDIRS =
+DESTDIR =
+UBINDIR ?= /usr/bin
+DESKTOPDIR ?= /usr/share/applications
+PIXMAPDIR ?= /usr/share/pixmaps
+SISYPHUSDATADIR ?= /usr/share/sisyphus-gui
+POLKITDIR ?= /usr/share/polkit-1/actions
+
+all:
+ for d in $(SUBDIRS); do $(MAKE) -C $$d; done
+
+clean:
+ for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done
+
+install:
+ for d in $(SUBDIRS); do $(MAKE) -C $$d install; done
+
+ install -d $(DESTDIR)$(UBINDIR)
+ install -m 0755 sisyphus-gui $(DESTDIR)$(UBINDIR)/
+ install -m 0755 sisyphus-gui-pkexec $(DESTDIR)$(UBINDIR)/
+ install -d $(DESTDIR)$(SISYPHUSDATADIR)
+ install -d $(DESTDIR)$(SISYPHUSDATADIR)/icon
+ install -d $(DESTDIR)$(SISYPHUSDATADIR)/ui
+ install -m 0755 *.py $(DESTDIR)$(SISYPHUSDATADIR)/
+ install -m 0755 icon/* $(DESTDIR)$(SISYPHUSDATADIR)/icon/
+ install -m 0755 ui/* $(DESTDIR)$(SISYPHUSDATADIR)/ui/
+ install -d $(DESTDIR)$(DESKTOPDIR)
+ install -m 0755 desktop/sisyphus-gui.desktop $(DESTDIR)$(DESKTOPDIR)/
+ install -d $(DESTDIR)$(PIXMAPDIR)
+ install -m 0644 desktop/sisyphus-gui.png $(DESTDIR)$(PIXMAPDIR)
+ install -d $(DESTDIR)$(POLKITDIR)
+ install -m 0644 org.redcorelinux.sisyphus-gui.policy $(DESTDIR)$(POLKITDIR)/
+
+uninstall:
+ rm -rf $(DESTDIR)$(UBINDIR)/sisyphus-gui
+ rm -rf $(DESTDIR)$(UBINDIR)/sisyphus-gui-pkexec
+ rm -rf $(DESTDIR)$(DESKTOPDIR)/sisyphus-gui.desktop
+ rm -rf $(DESTDIR)$(PIXMAPDIR)/sisyphus-gui.png
+ rm -rf $(DESTDIR)$(POLKITDIR)/org.redcorelinux.sisyphus-gui.policy
+ rm -rf $(DESTDIR)$(SISYPHUSDATADIR)