Add skeleton for verification in write path
[archipelago] / xseg / base.mk
index 19f22d4..559dc9a 100644 (file)
@@ -48,6 +48,23 @@ ifndef CSTD
 export CSTD=-std=gnu99 -pedantic
 endif
 
+export TOPDIR=$(shell dirname $(CURDIR))
+ifeq (,$(VERSION))
+export VERSION=$(shell cat $(TOPDIR)/version)
+endif
+
+ifeq (,$(DESTDIR))
+export DESTDIR=/
+endif
+
+
+bindir=/usr/bin/
+libdir=/usr/lib/
+pythondir=/usr/lib/python2.7/
+moduledir=/lib/modules/`uname -r`/extra/
+srcdir=/usr/src/archipelago-kernel-dkms-$(VERSION)/
+ganetidir=/usr/share/ganeti/extstorage/vlmc/
+
 INC=-I$(BASE)
 INC+=-I$(BASE)/peers/$(TARGET)
 INC+=-I$(BASE)/sys/$(TARGET)
@@ -67,14 +84,14 @@ endif
 
 CONFIG=./config.mk
 
-default:
+#default:
 
-.PHONY: clean-config
+#.PHONY: clean-config
 
-clean: clean-config
+#clean: clean-config
 
-clean-config:
-       rm -f $(CONFIG)
+#clean-config:
+#      rm -f $(CONFIG)
 
 ifndef BASE
 exists=$(shell [ -f "$(CONFIG)" ] && echo exists)