build_date = $(shell date)
system = $(shell uname -rs)
cc_version = $(shell $(CC) --version | head -n 1)
-codename = isotropic threshold
+codename = solar saturation
DEBUG_CPPFLAGS += -Wno-sign-compare -g -Wunused -Wundef -W
DEBUG_CPPFLAGS += -Wredundant-decls
para_filter para_write para_fsck @extra_binaries@
man_binaries := $(BINARIES)
man_pages := $(patsubst %, man/man1/%.1, $(man_binaries))
-man_pages_html := $(patsubst %, man/html/%.html, $(man_binaries))
+man_pages_in := $(patsubst %, web/%.man.in.html, $(man_binaries))
gengetopts := $(wildcard *.ggo)
gengetopts_c := $(gengetopts:.ggo=.cmdline.c)
gengetopts_h := $(gengetopts:.ggo=.cmdline.h)
-grutatxt := NEWS CREDITS INSTALL README FEATURES
-grutatxt_html := $(grutatxt:=.html)
-html_in := $(wildcard web/*.in.html)
-gen_html := $(subst web/,web/sync/,$(html_in))
-gen_html := $(gen_html:.in.html=.html)
-gruta_in := $(grutatxt:=.in.html)
-gruta_in := $(patsubst %,web/%,$(gruta_in))
-gruta_html := $(grutatxt:=.html)
-gruta_html := $(patsubst %,web/sync/%,$(gruta_html))
-shots := gui-2005-11-12.png para_audiod-startup.txt para_server-startup.txt
-shots := $(patsubst %,web/sync/%,$(shots))
-web_pics := web/sync/paraslash.png web/sync/paraslash.ico
-web_misc := overview.pdf versions/@PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.bz2 PUBLIC_KEY \
- key.anonymous para.css
-web_misc := $(patsubst %,web/sync/%,$(web_misc))
-web_man := web/sync/man
autocrap := config.h.in configure
tarball_pfx := @PACKAGE_TARNAME@-@PACKAGE_VERSION@
-tarball_delete = web versions pics .changelog_before_cvs .changelog_cvs
+tarball_delete = web versions pics .changelog_before_cvs .changelog_cvs .gitignore
tarball_delete := $(patsubst %,$(tarball_pfx)/%,$(tarball_delete))
tarball_add := $(gengetopts_c) $(gengetopts_h) $(autocrap)
+tarball := @PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.bz2
-.PHONY: clean distclean maintainer-clean install html www tags doxygen gruta \
- man html_man
+.PHONY: clean distclean maintainer-clean install man tarball
all: $(BINARIES)
-www: $(gen_html) $(gruta_html) $(web_pics) $(web_misc) $(shots) $(web_man) \
- tags doxygen
-gruta: $(gen_html) $(gruta_html)
man: $(man_pages)
-html_man: $(man_pages_html)
+tarball: $(tarball)
fade_objs = fade.cmdline.o fade.o exec.o close_on_fork.o string.o fd.o
fsck_objs = osl.o rbtree.o fsck.o string.o sha1.o fsck.cmdline.o
audioc.ggo) O="--unamed-opts=command";; \
fsck.ggo) O="--unamed-opts=table";; \
esac; \
- echo "$O"; if test $< != fsck.ggo; then O="$$O --conf-parser "; fi; \
+ if test $< != fsck.ggo; then O="$$O --conf-parser "; fi; \
gengetopt $$O \
--no-handle-version \
--file-name=$(*F).cmdline \
mkdir -p man/html
man2html $< > $@
+web/%.man.in.html: man/man1/%.1
+ man2html $< | sed -e '/^<\/BODY>/,$$d' -e '1,/<\/HEAD><BODY>/d' > $@
ortp_recv.o: ortp_recv.c
maintainer-clean: distclean
rm -f $(gengetopts_c) $(gengetopts_h) *.tar.bz2 \
- $(grutatxt_html) config.h configure \
+ config.h configure \
config.h.in skencil/*.pdf skencil/*.ps
- rm -f *_command_list.* *.man man/man1/* man/html/*
-
+ rm -f *_command_list.* *.man man/man1/*
+ rm -rf web_sync
install: all man
mkdir -p $(BINDIR) $(MANDIR)
bzip2 -9 $(tarball_pfx).tar
rm -f $(tarball_pfx).tar
ls -l $(tarball_pfx).tar.bz2
-
-web/%.in.html: %
- grutatxt -nb < $< > $@
-tags:
- rm -rf web/sync/HTML && gtags && htags -nF && mv HTML web/sync
-web/header2.html: web/header.html
- sed -e 's|href="|href="\.\.\/\.\./|g' \
- -e 's|SRC="|SRC="\.\.\/\.\./|g' $< > $@
-doxygen: web/header2.html
- mkdir -p web/sync/doxygen
- doxygen
-web/sync/man: html_man
- mkdir -p $@
- cp -a $(man_pages_html) $@
-web/sync/%.html: web/%.in.html web/header.html web/footer.html web/sync
- cat web/header.html $< web/footer.html > $@
-web/sync/%.png: pics/web/%.png web/sync
- cp $< $@
-web/sync/%.ico: pics/web/%.ico web/sync
- cp $< $@
-web/sync/para.css: web/para.css web/sync
- cp $< $@
-web/sync/versions/@PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.bz2: @PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.bz2 web/sync
- cp -a versions web/sync && cp $< $@
-web/sync/overview.pdf: skencil/overview.pdf web/sync
- cp $< $@
-web/sync/%: %
- cp -a $< $@
-web/sync/%: pics/screenshots/%
- cp $< $@
-skencil/%.ps: skencil/%.sk
+%.ps: %.sk
sk2ps $< > $@
%.pdf: %.ps
ps2pdf - - < $< > $@
+