aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 15 insertions, 1 deletions
diff --git a/configure b/configure
index cd77b56..2e7e6b4 100755
--- a/configure
+++ b/configure
@@ -16,6 +16,20 @@ LDFLAGS=
SOURCE_DIR="src"
+EXTRAS="
+parsed: parser/scrapeToJson.py parser/utils.py
+ python parser/scrapeToJson.py
+ touch parsed/
+"
+
+INSTALL="
+install: \$(EXECUTABLE) parsed
+ install -d \$(DESTDIR)\$(PREFIX)/share/dmtool/
+ cp -r parsed/* \$(DESTDIR)\$(PREFIX)/share/dmtool/
+ install -d \$(DESTDIR)\$(PREFIX)/bin/
+ install -m 755 \$(EXECUTABLE) \$(DESTDIR)\$(PREFIX)/bin/
+"
+
# Below here shouldn't need editing
SOURCES=`ls $SOURCE_DIR/*.cc | tr '\n' ' '`
@@ -63,7 +77,7 @@ ifeq (\$(PREFIX),)
endif
$ALL
-$LIBRULE$EXERULE
+$EXTRAS$INSTALL$LIBRULE$EXERULE
$ORULES