checksum.c depends on all libraries
authorMartin Willi <martin@strongswan.org>
Fri, 19 Jun 2009 09:52:51 +0000 (11:52 +0200)
committerMartin Willi <martin@strongswan.org>
Mon, 22 Jun 2009 13:47:17 +0000 (15:47 +0200)
src/libstrongswan/checksum/Makefile.am

index 6be4e92..6a109d2 100644 (file)
@@ -10,6 +10,7 @@ BUILT_SOURCES = checksum.c
 CLEANFILES = checksum.c checksum_builder
 INCLUDES = -I$(top_srcdir)/src/libstrongswan
 
-checksum.c : checksum_builder
-               find $(top_builddir)/src/libstrongswan -name 'libstrongswan-*.so' \
-                       | xargs ./checksum_builder > checksum.c
+libs = $(shell find $(top_builddir)/src/libstrongswan -name 'libstrongswan*.so')
+
+checksum.c : checksum_builder $(libs)
+               ./checksum_builder $(libs) > checksum.c