From b091d9e48c95f5e2b438f62e1143faf62e2125bb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 8 Oct 2016 20:54:02 +0100 Subject: add Makefile --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile 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)/ -- cgit v1.2.3