-version.c: VERSION
- @echo "Creating version.c"
- @sed -e 's/^\(.*\)$$/char *version_string = "\1";/' VERSION > $@
-
-proto.h: $(SRCS)
- @touch $@
- @mv $@ $@.old
- @cat $(SRCS) | grep '^ExtFunc[ ]' | sed -e 's/)$$/);/' > $@
- @if diff $@.old $@ > /dev/null 2>&1; then :; else \
- echo "proto.h changed"; \
- touch proto.chg; \
- fi
- @rm -f $@.old
-
-depend: proto.h $(SRCS)
- @echo "Checking dependencies"
- @sed -n -e '1,/make depend #####$$/p' Makefile > Makefile.new
- @$(CC) -M $(SRCS) | sed -e 's/proto\.h/proto.chg/g' >> Makefile.new
- @mv -f Makefile.new Makefile
-