summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-03 22:38:31 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-06 20:58:56 +0100
commit6f42d44586fbed3f5addfe81fa5d6b4ab40f2dbf (patch)
tree0f377326b3887b2353935217cc4ad5eb860927e0
parent2d96dbe667de57bc90eb4dc826cce3ed19e94823 (diff)
downloadvyos-1x-6f42d44586fbed3f5addfe81fa5d6b4ab40f2dbf.tar.gz
vyos-1x-6f42d44586fbed3f5addfe81fa5d6b4ab40f2dbf.zip
T1843: add support for recursive includes
An XML include file can now inlude another XML include file. This is very handy on e.g. VIF or VIF-S interfaces that also have an address node. Thus more code is reused and simplified.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 834e8dd3f..97e933694 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ obj = $(src:.xml.in=.xml)
# -nostdinc Do not search the standard system directories for header files
# -P Inhibit generation of linemarkers in the output from the
# preprocessor
- @gcc -ansi -x c -E -undef -nostdinc -P -o $(BUILD_DIR)/$@ -c $<
+ @$(CC) -ansi -x c -E -undef -nostdinc -P -I$(CURDIR)/interface-definitions -o $(BUILD_DIR)/$@ -c $<
$(BUILD_DIR):
install -d -m 0755 $(BUILD_DIR)/interface-definitions