diff options
| author | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-07-01 20:17:22 +0200 |
|---|---|---|
| committer | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-07-01 20:17:22 +0200 |
| commit | a7aa66722070de6ab2e84e5a1311b96c98f36e14 (patch) | |
| tree | 617f8bec8aebb398d6cfe61f1077b2db58dab85b /Makefile | |
| parent | 79f67cf524bf8c9069241475e9365362066ca3ab (diff) | |
| parent | f06ac1cce099cdb5a415663ff6473990066ea4cf (diff) | |
Merge remote-tracking branch 'remotes/github/ychat-0.5-basic' into ychat-0.5-basicychat-0.5-basic
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4842efd --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +MAKE=gmake +HEADER?=docs/header.txt +all: base + @echo "Now edit the ./conf.txt file and run ./ychat!" +install: deinstall +uninstall: deinstall +deinstall: + @echo Install/deinstall is not supported! + @echo Start yChat with ./ychat instead! + @exit 1 +base: + @${MAKE} -C ./src +clean_base: + @${MAKE} -C ./src clean +stats: + @perl scripts/stats.pl +run: + ./ychat +gpl: + @more COPYING +clean: clean_base +debug: + @gdb ./ychat ychat.core +version: + @sh ./scripts/version.sh +headers: + @find -E ./ -regex '\./src/.*\.(h|(cpp)|(tmpl))' -exec \ + sh -c 'export FILE={}; ${MAKE} header' \; +header: + @echo "===> Processing ${FILE}" + @sed -n '/*:/d; w .tmp' ${FILE} + @header=`sed 's/\(.*\)/ echo " \*: \1"/' ${HEADER}`; \ + echo '/*:*' > ${FILE}; eval "$$header" >> ${FILE}; \ + echo ' *:*/' >> ${FILE}; cat .tmp >> ${FILE}; rm -f .tmp +replace: + @find ./ -type f -exec sh -c 'sed -n "s/$(FROM)/$(INTO)/g; \ + w .tmp" {} && mv -f .tmp {}' \; |
