From b3343459e8a76c16df63eee92238544bfcc140f5 Mon Sep 17 00:00:00 2001
From: Daniel Karbach <daniel.karbach@localhorst.tv>
Date: Sat, 15 Sep 2012 20:47:17 +0200
Subject: [PATCH] added make target for data

---
 makefile.defs    | 20 ++++++++++++++++++++
 makefile.targets |  1 +
 2 files changed, 21 insertions(+)
 create mode 100644 makefile.defs
 create mode 100644 makefile.targets

diff --git a/makefile.defs b/makefile.defs
new file mode 100644
index 0000000..1d6cb97
--- /dev/null
+++ b/makefile.defs
@@ -0,0 +1,20 @@
+L2_SRCS := \
+../test-data/constants.l2s \
+../test-data/ikaris.l2s \
+../test-data/items.l2s \
+../test-data/spells.l2s \
+../test-data/test.l2s
+
+L2_OBJS := \
+../test-data/constants.l2o \
+../test-data/ikaris.l2o \
+../test-data/items.l2o \
+../test-data/spells.l2o \
+../test-data/test.l2o
+
+../test-data/%.l2o: ../test-data/%.l2s
+	@echo 'Building file: $<'
+	@echo 'Invoking: L2E Compiler'
+	./l2e -o "$@" "$<"
+	@echo 'Finished building: $<'
+	@echo ' '
diff --git a/makefile.targets b/makefile.targets
new file mode 100644
index 0000000..01a9928
--- /dev/null
+++ b/makefile.targets
@@ -0,0 +1 @@
+data: $(L2_OBJS)
-- 
2.39.5