summaryrefslogtreecommitdiffstats
path: root/docs/proto/Makefile.old
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-10 14:24:56 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-10 14:24:56 +0800
commitfa5b233767ca9d4e012839c28eb13628d2ebba63 (patch)
treeb9f02d70672704dc7ea5726bc2d7e982c4d75dd9 /docs/proto/Makefile.old
parentf1803b4bcb86f3362dda2feba438056363faeed5 (diff)
downloadpttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar
pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar.gz
pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar.bz2
pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar.lz
pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar.xz
pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar.zst
pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.zip
Automake is a hard work, still not working now.
git-svn-id: http://opensvn.csie.org/pttbbs/branches/piaip.automake@3152 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'docs/proto/Makefile.old')
-rw-r--r--docs/proto/Makefile.old18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/proto/Makefile.old b/docs/proto/Makefile.old
new file mode 100644
index 00000000..63086b38
--- /dev/null
+++ b/docs/proto/Makefile.old
@@ -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