#-*- mode: Fundamental; tab-width: 4; -*- # ex:ts=4 # Copyright (C) 2001 Nick Moffitt # # Redistribution and/or use, with or without modification, is # permitted. This software is without warranty of any kind. The # author(s) shall not be liable in the event that use of the # software causes damage. # this file contains all of the rules for integrating with # debbugs and for making informational Web pages for each of the # packages. DEBBUGSDIR ?= /var/lib/debbugs/www BUGMAINT ?= $(WORKDIR)/Maintainers BUGDESC ?= $(WORKDIR)/pseudo-packages.description MAINTAINER ?= Unclaimed Package DESCRIPTION ?= This package has no description. Please mail $(MAINTAINER) and ask that one be added. CVSURL ?= http://cvs.lnx-bbc.org/cvs/gar/ debbugs: @echo " Package: $(GARNAME)" @echo " Maintainer: $(subst ",\",$(subst \$,\\$,$(MAINTAINER)))" @echo " Description: $(subst ",\",$(subst \$,\\$,$(DESCRIPTION)))" @echo "$(GARNAME) $(subst ",\",$(subst \$,\\$,$(MAINTAINER)))" >> $(BUGMAINT) @echo "$(GARNAME) $(subst ",\",$(subst \$,\\$,$(DESCRIPTION)))" >> $(BUGDESC) define HTMLTEMPLATE \n \n \t$(GARNAME)\n \t\n \n \n

$(GARNAME) -- $(DESCRIPTION)

\n

$(subst ,\n

\n,$(BLURB))

\n \t

Categories

\n \t

\n \t\t

\n \t

\n \n \t

Version

\n \t

$(GARVERSION)

\n \n \t

Maintainer

\n \n

$(subst <,<,$(subst >,>,$(MAINTAINER)))

\n \n \t

License

\n \t\t\n \n $(DEPENDSHTML) $(BUILDDEPSHTML) $(shell test -e $(DEBBUGSDIR)/db/pa/l$(GARNAME).html && echo -n '

Bugs

\n

See the list of bugs for $(GARNAME).

\n') \t

CVS

\n

Browse the CVS directory for $(GARNAME)

\n
\n Return to package list\n \n endef ifdef BUILDDEPS define BUILDDEPSHTML \t

Build Dependencies

\n \t

\n \t\t

\n \t

\n endef endif define REALDEPENDSHTML \t

Dependencies

\n \t

\n \t\t

\n \t

\n endef ifneq "$(LIBDEPS)" "" DEPENDSHTML = $(REALDEPENDSHTML) endif ifneq "$(DEPENDS)" "" DEPENDSHTML = $(REALDEPENDSHTML) endif export HTMLTEMPLATE webpages: @echo -e $${HTMLTEMPLATE} > $(HTMLDIR)/$(GARNAME).html @echo "
  • $(GARNAME)
    $(DESCRIPTION)
  • " >> $(HTMLINDEX) htmldeps: @echo " Dependency tree for $(GARNAME)" @echo " " @echo "

    $(GARNAME) Dependency Tree

    " @echo "

    Color Legend:

    " @echo "

    Dependency Tree:

      " @$(MAKE) -s htmldep @echo "
    " htmldep: @$(foreach IMG,$(IMGDEPS),for dep in $(filter-out $($(IMG)_NODEPEND),$($(IMG)_DEPENDS)); \ do echo -e "
  • $(IMG): $$dep
  • "; \ echo -e "
      "; \ $(MAKE) -s -C $(GARDIR)/$$dep DESTIMG=$(IMG) htmldep; \ echo -e "
    "; \ done ;) true webtest: @echo -e $${HTMLTEMPLATE}