Fixed 'distfiles' target after the removal of 'BUILT_SOURCES'.
[udpgate.git] / Makefile-head.am
index d79592f..8026535 100644 (file)
@@ -22,7 +22,6 @@
 # Set all needed variables to their empty values to prevent "variable `...' not defined"
 # Any further settings should be done exclusively by += operator
 EXTRA_DIST=
-BUILT_SOURCES=
 CLEANFILES=
 MAINTAINERCLEANFILES=
 INCLUDES=
@@ -43,29 +42,12 @@ INCLUDES+=-I$(top_srcdir)/intl
 # This target is used during ./autogen.pl POTFILES.in generation
 distfiles: $(DISTFILES)
        @if test -n "$(DISTFILES_PRINT)";then \
-               echo -n ":DISTFILES:"; \
-               for distfile in . $(DISTFILES);do \
-                       if test -n 1 \
-                                       -a "$$distfile" '!=' . \
-                                       -a "$$distfile" '!=' Makefile.am \
-                                       -a "$$distfile" '!=' Makefile.in \
-                                       ;then \
-                               if echo " $(BUILT_SOURCES) "|grep -q " $$distfile ";then :;else \
-                                       echo -n " $(subdir)/$$distfile"; \
-                                       fi; \
-                               fi; \
-                       done; \
-               echo; \
-               fi;
+               echo ":DISTFILES:"; \
+       fi;
        @for subdir in . $(SUBDIRS);do \
                if test "$$subdir" = . -o "$$subdir" = intl -o "$$subdir" = po -o "$$subdir" = m4;then :;else \
                        (cd "$$subdir" && $(MAKE) $(AM_MAKEFLAGS) distfiles) || exit 1; \
-                       fi; \
-               done
-
-dist-hook:
-       for i in _built_sources_pad $(BUILT_SOURCES);do \
-               $(RM) $(distdir)/$$i; \
+               fi; \
        done