summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d59d0ef
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+SUBDIRS =
+DESTDIR =
+UBINDIR ?= /usr/bin
+LIBDIR ?= /usr/lib
+SBINDIR ?= /sbin
+USBINDIR ?= /usr/sbin
+BINDIR ?= /bin
+LIBEXECDIR ?= /usr/libexec
+POLKITDIR ?= /usr/share/polkit-1/actions
+SYSCONFDIR ?= /etc
+SYSTEMD_UNITDIR ?= $(LIBDIR)/systemd/system
+
+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 -d $(DESTDIR)$(POLKITDIR)
+ install -m 0644 ro.kogaion.sisyphus.policy $(DESTDIR)$(POLKITDIR)/