Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
authorroland <roland>
Tue, 25 Jun 1996 07:00:57 +0000 (07:00 +0000)
committerroland <roland>
Tue, 25 Jun 1996 07:00:57 +0000 (07:00 +0000)
* rpm/Makefile ($(config)): Make sure the word list in the for
loop is syntactically non-empty.

rpm/Makefile

index 535e14e..36e91b9 100644 (file)
@@ -64,11 +64,13 @@ $(config): template $(distinfo) Makefile
        rm -f $@.new
        (sed -e 's%@VERSION@%$(version)%g' $<; \
         ($(foreach var,$(instvars),\
-         for f in $(install-$(var)); do \
+         list='$(install-$(var))'; \
+         for f in $$list; do \
            echo $(filter-out /,$($(var)dir)/)$$f; \
          done;\
         )) | sort; \
-        (for f in $(install-sysconf); do \
+        (list='$(install-sysconf)'; \
+         for f in $$list; do \
            echo %config $$f; \
          done) | sort) > $@.new
        mv -f $@.new $@