Makefile: Add doxygen comment to the osl_errors enum.
authorAndre Noll <maan@systemlinux.org>
Sun, 26 Jul 2009 16:24:40 +0000 (18:24 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 26 Jul 2009 16:24:40 +0000 (18:24 +0200)
Makefile

index 24fba19..c741cb9 100644 (file)
--- 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' $< > $@