From 815e3b7fea9d9438eb7fd42a5e04a0b9e49a0c5f Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 7 May 2016 11:38:44 -0400 Subject: build system: project/headers.mk: added header information. --- project/headers.mk | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/project/headers.mk b/project/headers.mk index 9d50ee3..065fb10 100644 --- a/project/headers.mk +++ b/project/headers.mk @@ -1,5 +1,11 @@ -API_HEADERS = \ +api_include_dirs = $(PROJECT_DIR)/include/cparser/*/ +api_include_headers = $(addsuffix *.h,$(api_include_dirs)) +api_sort_headers = $(sort $(wildcard $(api_include_headers))) +API_HEADERS = $(api_sort_headers) -INTERNAL_HEADERS = \ +internal_dirs = $(PROJECT_DIR)/src/internal/ +internal_files = $(addsuffix *.h,$(internal_dirs)) +internal_sort_files = $(sort $(wildcard $(internal_files))) +INTERNAL_HEADERS = $(subst $(PROJECT_DIR)/src/,src/,$(internal_sort_files)) -ALL_HEADERS = $(API_HEADERS) $(INTERNAL_HEADERS) +ALL_HEADERS = $(API_HEADERS) $(INTERNAL_HEADERS) -- cgit v1.2.3