summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-10-08 20:54:02 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-10-08 20:54:02 +0100
commitb091d9e48c95f5e2b438f62e1143faf62e2125bb (patch)
treeab69fa1b1c868891e5840c309b6a20390b4c9ae1
parentb181e2a138f692d99348c95ebc4d868b72fad8ad (diff)
add 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)/