From: Andre Noll <maan@systemlinux.org>
Date: Sun, 26 Jul 2009 16:24:40 +0000 (+0200)
Subject: Makefile: Add doxygen comment to the osl_errors enum.
X-Git-Tag: v0.1.0~14
X-Git-Url: https://git.tue.mpg.de/?a=commitdiff_plain;h=c36dc2cd252559a03b44d7f8d6ed6565ded2edc5;p=osl.git

Makefile: Add doxygen comment to the osl_errors enum.
---

diff --git a/Makefile b/Makefile
index 24fba19..c741cb9 100644
--- a/Makefile
+++ b/Makefile
@@ -146,11 +146,12 @@ $(realname): $(objects)
 	$(CC) $(LDFLAGS) -o $@ $(objects) -lcrypto
 
 osl_errors.h: errlist
+	echo '/** public error codes of the osl library. */' > $@
 	sed -e 's/\([A-Z_]*\)	.*/	E_OSL_\1/' \
 		-e '1s/^/enum osl_errors {/1' \
 		-e '1s/$$/=1/1' \
 		-e '$$!s/$$/,/g' \
-		-e '$$s/$$/};/1' $< > $@
+		-e '$$s/$$/};/1' $< >> $@
 
 errtab.h: errlist
 	sed -e 's/^\([A-Z_]*\)\s*\(.*\)/OSL_ERROR(E_OSL_\1, \2)/g' $< > $@