summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..2a3461a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+SUBDIRS =
+DESTDIR =
+UBINDIR ?= /usr/bin
+ULIBDIR ?= /usr/lib/vasile
+
+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 src/frontend/cli/vasile.sh $(DESTDIR)$(UBINDIR)/
+ install -d $(DESTDIR)$(ULIBDIR)
+ install -m 0644 src/backend/*sh $(DESTDIR)$(ULIBDIR)/
+
+uninstall:
+ rm -rf $(DESTDIR)$(UBINDIR)/vasile.sh
+ rm -rf $(DESTDIR)$(ULIBDIR)