Use special make variables.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 29 Feb 2008 14:39:18 +0000 (15:39 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 29 Feb 2008 14:39:18 +0000 (15:39 +0100)
(This used to be commit dfb4ddcd5dbd27d275e7a41ede5441be25db9a35)

source4/librpc/config.mk

index e37bd4fae7e5a63a46c95c3d5ccf5154eb31be1b..7abc693960e6369055ff18424603b5ccb285c3ae 100644 (file)
@@ -297,9 +297,9 @@ clean::
 include librpc/idl-deps
 
 librpc/gen_ndr/tables.c: $(IDL_NDR_PARSE_H_FILES)
-       @echo Generating librpc/gen_ndr/tables.c
-       @$(PERL) $(srcdir)/librpc/tables.pl --output=librpc/gen_ndr/tables.c $(IDL_NDR_PARSE_H_FILES) > librpc/gen_ndr/tables.x
-       mv librpc/gen_ndr/tables.x librpc/gen_ndr/tables.c
+       @echo Generating $@
+       @$(PERL) $(srcdir)/librpc/tables.pl --output=$@ $^ > librpc/gen_ndr/tables.x
+       @mv librpc/gen_ndr/tables.x $@
 
 [SUBSYSTEM::NDR_TABLE]
 OBJ_FILES = ndr/ndr_table.o gen_ndr/tables.o