diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-20 22:24:23 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-20 22:24:23 +0800 |
commit | 6b285d3fd87cdb14d12d4d835bacd86283aa0b9e (patch) | |
tree | ea91b09c7ad99e4d1555b5e93537658dac3bd3ee /docs/proto/Makefile | |
parent | c28b22f9df8800338a59bc7c793255d4cccf4506 (diff) | |
download | pttbbs-6b285d3fd87cdb14d12d4d835bacd86283aa0b9e.tar pttbbs-6b285d3fd87cdb14d12d4d835bacd86283aa0b9e.tar.gz pttbbs-6b285d3fd87cdb14d12d4d835bacd86283aa0b9e.tar.bz2 pttbbs-6b285d3fd87cdb14d12d4d835bacd86283aa0b9e.tar.lz pttbbs-6b285d3fd87cdb14d12d4d835bacd86283aa0b9e.tar.xz pttbbs-6b285d3fd87cdb14d12d4d835bacd86283aa0b9e.tar.zst pttbbs-6b285d3fd87cdb14d12d4d835bacd86283aa0b9e.zip |
add "cdoc" (just like javadoc) to grab prototype and comments of functions
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2344 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'docs/proto/Makefile')
-rw-r--r-- | docs/proto/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/proto/Makefile b/docs/proto/Makefile new file mode 100644 index 00000000..63086b38 --- /dev/null +++ b/docs/proto/Makefile @@ -0,0 +1,18 @@ + +#.SUFFIXES: .c .txt + +# XXX 這有沒有比較好的作法? +# 直接用 .c.txt 好像會先去看目前目錄有沒有 xxx.c @_@ + +NAME!= cd ../../mbbsd/ && ls *.c | sed -e "s/\.c//" +SRC!= cd ../../mbbsd/ && ls *.c | sed -e "s/\.c/.txt/" + +all: $(SRC) + +.for fn in $(NAME) +$(fn).txt: ../../mbbsd/$(fn).c + ./cdoc ../../mbbsd/$(fn).c > $(fn).txt +.endfor + +clean: + rm -f *.txt |