X-Git-Url: http://git.jankratochvil.net/?p=udpgate.git;a=blobdiff_plain;f=src%2FMakefile.am;h=fdadb7d76857220530df19b047aa6ed149fc6950;hp=dfba9e5cd8499421414e605ecb7fffabf94e5b52;hb=5425eb2a5ef6df5787d8c2af58854620d8e7c6ef;hpb=c11472e1bc3f4f8cbb75da5abcb853b675246969 diff --git a/src/Makefile.am b/src/Makefile.am index dfba9e5..fdadb7d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -38,9 +38,8 @@ endif if ENABLE_BUNDLE -nodist_udpgate_SOURCES=bundle.c - BUNDLE_SRCS= \ + bundle.c \ bundle.h \ bundle-util.c \ bundle-util.h @@ -48,12 +47,18 @@ BUNDLE_SRCS= \ EXTRA_DIST+= \ bundle.pl +if HAVE_PERL # FIXME: GNU make(1) dependency by $(addprefix ...) -bundle_files=$(top_srcdir)/init.d/$(PACKAGE).init $(addprefix $(top_builddir)/$(POSUB)/,$(CATALOGS)) +po_files=$(addprefix $(top_builddir)/$(POSUB)/,$(CATALOGS)) +bundle_files=$(top_srcdir)/init.d/$(PACKAGE).init $(po_files) bundle.c: bundle.pl $(bundle_files) - $(PERL) bundle.pl $(bundle_files) >$@ + $(PERL) bundle.pl $(bundle_files) >$@ + +$(po_files): + $(MAKE) -C $(top_builddir)/$(POSUB) endif +endif udpgate_SOURCES= \ configuration.c \