summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-11-29 23:57:06 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-11-29 23:57:06 +0000
commit1b5d87dc8393295568f8f82a5d48fbc086f2caaf (patch)
tree41d4e53e9df766d1893e756b371e681b8add63be /Makefile
parenta23accad55705278cb19592c4af785dd182f36b7 (diff)
Makefile : allow package splitting without weird hacks
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index af54dfd..ea6729b 100644
--- a/Makefile
+++ b/Makefile
@@ -12,18 +12,21 @@ all:
clean:
for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done
-install:
+install-cli:
for d in $(SUBDIRS); do $(MAKE) -C $$d install; done
+ install -d $(DESTDIR)$(SISYPHUSDATADIR)
+ install -d $(DESTDIR)$(SISYPHUSDATADIR)/helpers
+ install -m 0755 src/helpers/* $(DESTDIR)$(SISYPHUSDATADIR)/helpers/
+ install -m 0755 src/frontend/cli/*.py $(DESTDIR)$(SISYPHUSDATADIR)/
+
+install-gui:
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)/helpers
install -d $(DESTDIR)$(SISYPHUSDATADIR)/icon
install -d $(DESTDIR)$(SISYPHUSDATADIR)/ui
- install -m 0755 src/helpers/* $(DESTDIR)$(SISYPHUSDATADIR)/helpers/
- install -m 0755 src/frontend/cli/*.py $(DESTDIR)$(SISYPHUSDATADIR)/
install -m 0755 src/frontend/gui/*.py $(DESTDIR)$(SISYPHUSDATADIR)/
install -m 0755 src/frontend/gui/icon/* $(DESTDIR)$(SISYPHUSDATADIR)/icon/
install -m 0755 src/frontend/gui/ui/* $(DESTDIR)$(SISYPHUSDATADIR)/ui/
@@ -34,6 +37,8 @@ install:
install -d $(DESTDIR)$(POLKITDIR)
install -m 0644 org.redcorelinux.sisyphus-gui.policy $(DESTDIR)$(POLKITDIR)/
+install: install-cli install-gui
+
uninstall:
rm -rf $(DESTDIR)$(UBINDIR)/sisyphus-gui
rm -rf $(DESTDIR)$(UBINDIR)/sisyphus-gui-pkexec