Commits

Anonymous committed 375e9d6

r4693@telaviv1: shlomi | 2008-02-05 12:52:20 +0200
Implemented the improved fortunes archives installation process, so
we won't get the same message over and over again.

Comments (0)

Files changed (1)

 include include.mak
 include rules.mak
 
+FORTUNES_DIR = humour/fortunes
+T2_FORTUNES_DIR = t2/$(FORTUNES_DIR)
+
+include $(T2_FORTUNES_DIR)/arcs-list.mak
+
 SITE_SOURCE_INSTALL_TARGET = $(T2_DEST)/meta/site-source/INSTALL
 FORTUNES_TARGET = $(T2_DEST)/humour/fortunes/index.html
 
 
 RSYNC = rsync --progress --verbose --rsh=ssh
 
-FORTUNES_DIR = humour/fortunes
+T2_DEST_FORTUNES = $(patsubst %,$(T2_DEST)/$(FORTUNES_DIR)/%,$(FORTUNES_ARCS_LIST))
 
-copy_fortunes:
-	cp -f t2/$(FORTUNES_DIR)/fortunes-shlomif-*.tar.gz $(T2_DEST)/$(FORTUNES_DIR)
+copy_fortunes: $(T2_DEST_FORTUNES)
+
+$(T2_DEST_FORTUNES) :: $(T2_DEST)/% : t2/%
+	cp -f $< $@
 
 upload_deps: all