Add skeleton for verification in write path
[archipelago] / xseg / base.mk
index d0a982e..559dc9a 100644 (file)
@@ -48,11 +48,16 @@ ifndef CSTD
 export CSTD=-std=gnu99 -pedantic
 endif
 
-ifeq (,$(VERSION))
 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/