Automatically extract function prototypes
This commit is contained in:
parent
e9a70f33ed
commit
6919f5aa12
1 changed files with 11 additions and 1 deletions
10
src/Makefile
10
src/Makefile
|
@ -46,5 +46,15 @@ clean:
|
|||
@echo -e "$(CC)\t$@"
|
||||
@$(CC) $(CFLAGS) -c $< $(INCLUDES) $(LIBINC) $(LIBS) $(DEFINES) -o $*.o
|
||||
|
||||
protos: $(CFILES)
|
||||
@rm -f nzg_proto.h
|
||||
@touch nzg_proto.h
|
||||
@( echo -e "#ifndef _NZG_PROTO"; \
|
||||
echo -e "#define _NZG_PROTO 1\n"; \
|
||||
cproto *.c ; \
|
||||
echo -e "\n#endif") > nzg_proto.t
|
||||
@mv nzg_proto.t nzg_proto.h
|
||||
|
||||
|
||||
edit:
|
||||
gvim *.c *.h
|
||||
|
|
Loading…
Reference in a new issue