summaryrefslogtreecommitdiff
path: root/include/path.h
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-17 22:19:43 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-17 22:19:43 +0000
commit42f5cf229efa2b20c642c7c0d7a2f3cd98b9a890 (patch)
tree7eb6d3b99cdff9ae13df36af2c27cc5137365fae /include/path.h
parent437da38a26548714e6e1640722148f0f9f601ccb (diff)
- dopisane scripty
git-svn-id: http://opensvn.csie.org/tuxanci_ng@25 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'include/path.h')
-rw-r--r--include/path.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/path.h b/include/path.h
index ab1ae61..a51baa0 100644
--- a/include/path.h
+++ b/include/path.h
@@ -3,8 +3,23 @@
#define PATH_H
+#include "main.h"
+
+#ifdef DISTDIR
+
#define PATH_DIR "share/tuxanci-ng/"
+#endif
+
+#ifndef DISTDIR
+
+#define PATH_DIR "./"
+
+#undef DISTDIR
+#define DISTDIR ""
+
+#endif
+
#define PATH_IMAGE DISTDIR PATH_DIR "image/"
#define PATH_FONT DISTDIR PATH_DIR "font/"
#define PATH_ARENA DISTDIR PATH_DIR "arena/"