summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-04-02 14:24:41 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-04-02 14:24:41 +0100
commit56ee757b387147b1bd3b2ceeb59635f7e5495530 (patch)
tree630157f3f4ac4875a27cc15aacf0aceff19aaf9f /Makefile
parent8c8de75b54aac5585996e1cb80fe72c27a4e8c84 (diff)
publish new PyQt5 code
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fbcd684
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,40 @@
+SUBDIRS =
+DESTDIR =
+UBINDIR ?= /usr/bin
+DESKTOPDIR ?= /usr/share/applications
+PIXMAPDIR ?= /usr/share/pixmaps
+SISYPHUSDATADIR ?= /usr/share/sisyphus
+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 $(DESTDIR)$(UBINDIR)/
+ install -m 0755 sisyphus-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.desktop $(DESTDIR)$(DESKTOPDIR)/
+ install -d $(DESTDIR)$(PIXMAPDIR)
+ install -m 0644 desktop/sisyphus.png $(DESTDIR)$(PIXMAPDIR)
+ install -d $(DESTDIR)$(POLKITDIR)
+ install -m 0644 org.redcorelinux.sisyphus.policy $(DESTDIR)$(POLKITDIR)/
+
+uninstall:
+ rm -rf $(DESTDIR)$(UBINDIR)/sisyphus
+ rm -rf $(DESTDIR)$(UBINDIR)/sisyphus-pkexec
+ rm -rf $(DESTDIR)$(DESKTOPDIR)/sisyphus.desktop
+ rm -rf $(DESTDIR)$(PIXMAPDIR)/sisyphus.png
+ rm -rf $(DESTDIR)$(POLKITDIR)/org.redcorelinux.sisyphus.policy
+ rm -rf $(DESTDIR)$(SISYPHUSDATADIR)