X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile;h=4bd16e45945cf3cd84066407924af9fedf3f8c94;hb=8d5bd42477d0866f4de94b17548ed7f3af046a5d;hp=d2a136c504ce57db431fc04a60afb561fd3b6bfc;hpb=44a209049642de34864d5453564f2af0ca2d1cb2;p=osl.git diff --git a/Makefile b/Makefile index d2a136c..4bd16e4 100644 --- a/Makefile +++ b/Makefile @@ -95,7 +95,6 @@ Makefile.deps: $(wildcard *.c *.h) $(CC) -MM -MG *.c > $@ osl.c: errtab.h - -include Makefile.deps fsck.cmdline.o: fsck.cmdline.c fsck.cmdline.h @@ -126,14 +125,15 @@ $(realname): $(objects) osl_errors.h: errlist sed -e 's/\([A-Z_]*\) .*/ E_OSL_\1/' \ -e '1s/^/enum osl_errors {/1' \ + -e '1s/$$/=1/1' \ -e '$$!s/$$/,/g' \ -e '$$s/$$/};/1' $< > $@ errtab.h: errlist sed -e 's/^\([A-Z_]*\)\s*\(.*\)/_S(E_OSL_\1, \2)/g' $< > $@ -osl.h: osl.h.in osl_errors.h - cat $^ > $@ +osl.h: osl.h.in osl_errors.h Makefile + cat osl.h.in osl_errors.h > $@ clean: rm -f *.o $(realname) osl.h osl_errors.h errtab.h fsck.cmdline.h fsck.cmdline.c