]> git.tuebingen.mpg.de Git - osl.git/blobdiff - Makefile
osl.h depends on Makefile.
[osl.git] / Makefile
index f9e505514652537f3ffb80b96aa3cf532966ff7f..4bd16e45945cf3cd84066407924af9fedf3f8c94 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -95,13 +95,12 @@ 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
        $(CC) -c -DVERSION='"$(VERSION)"' $<
 
-%.fsck.o: %.c Makefile
+%.fsck.o: %.c Makefile fsck.cmdline.c fsck.cmdline.h
        $(CC) -c -DVERSION='"$(VERSION)"' $(CPPFLAGS) $(CFLAGS) $< -o $@
 
 %.o: %.c Makefile
@@ -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