]> git.tue.mpg.de Git - osl.git/commitdiff
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 24fba19d3062e4c7dfd400c5b805688037dd9f2a..c741cb97ea457e10076e2b0c84d77b4f2c745d50 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' $< > $@