Skip to content
Snippets Groups Projects
Commit bd103ebb authored by Christian Engwer's avatar Christian Engwer
Browse files

Das Erstellen der Doxygen Dependencies war etwas haarig. Jetzt

uebrnimmt das ein Perl Skript

[[Imported from SVN: r345]]
parent 2bed039b
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/perl -w
use strict;
use English;
use IO::Handle;
my $defaulttarget = "doxygen-tag";
my $USAGE = "Doxydep <DOXYFILE> <DEPFILE> [TARGET]".
"\tDOXYFILE: Configuration file for Doxygen\n".
"\tDEPFILE: Outfile for the dependencies\n".
"\tTARGT: Target for the Makefile (default=$defaulttarget)";
# DOXYFILE
my $doxyfile = shift || die $USAGE;
open DOXYFILE, $doxyfile || die "Could not open $doxyfile\n";
# DEPFILE
my $depfile = shift || die $USAGE;
open DEPFILE, ">$depfile" || die "Could not open $depfile\n";
# TARGET
my $target;
$target = shift;
if (! $target) { $target = $defaulttarget };
my $line="";
print "\n";
while (<DOXYFILE>) {
chomp;
my $input =$_;
if ($input=~/^\s*INPUT\s*=/) {
while ($input=~/\\\s*$/) {
$input =~ s/\\\s*$//;
$line = $line.$input;
$input = DOXYFILE->getline();
};
$line = $line.$input;
}
}
close DOXYFILE;
$line =~ s/^\s*INPUT\s*=//;
$line =~ s/\s+/ /g;
my @depends = split(/ /, $line);
foreach (@depends) {
print DEPFILE "$target: $_\n";
}
close DEPFILE;
......@@ -5,13 +5,8 @@ all: doxygen-tag
doxygen_DEPS = $(shell: cat $(DEPDIR)/doxygen.Po)
doxygen_FILES = Doxyfile doxy-header.html doxy-footer.html dune-doxy.css
$(DEPDIR)/doxygen.Po:
if [ ! -d $(DEPDIR) ]; then mkdir $(DEPDIR); fi
echo > $@
for d in $$(grep '^INPUT ' Doxyfile | cut -d '=' -f 2); do \
for p in $$(grep '^FILE_PATTERNS ' Doxyfile | cut -d '=' -f 2); \
do find "$$d" -name "$$p" -exec echo doxygen-tag: \{\} \; >> $@ ; \
done; done
$(DEPDIR)/doxygen.Po: Doxyfile
./Doxydep $< $@
doxygen-tag: $(doxygen_FILES) $(doxygen_DEPS)
doxygen
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment