summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/make/templates.mk2
-rw-r--r--source4/build/smb_build/makefile.pm3
2 files changed, 3 insertions, 2 deletions
diff --git a/source4/build/make/templates.mk b/source4/build/make/templates.mk
index 01afb3f2fb..87aa30c0c0 100644
--- a/source4/build/make/templates.mk
+++ b/source4/build/make/templates.mk
@@ -38,6 +38,8 @@ define proto_header_template
$(1): $(2) ;
@echo "Creating $$@"
@$$(PERL) $$(srcdir)/script/mkproto.pl --srcdir=$$(srcdir) --builddir=$$(builddir) --public=/dev/null --private=$$@ $$^
+
+PROTO_HEADERS += $(1)
endef
# Shared module
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm
index db8ba4b604..f2df09d9cd 100644
--- a/source4/build/smb_build/makefile.pm
+++ b/source4/build/smb_build/makefile.pm
@@ -227,8 +227,7 @@ sub ProtoHeader($$)
{
my ($self,$ctx) = @_;
- my $target = "\$(addprefix $ctx->{BASEDIR}/,$ctx->{PRIVATE_PROTO_HEADER})";
- $self->output("PROTO_HEADERS += $target\n");
+ my $target = "$ctx->{BASEDIR}/$ctx->{PRIVATE_PROTO_HEADER}";
$self->output("\$(call proto_header_template,$target,\$($ctx->{NAME}_OBJ_FILES:.o=.c))\n");
}