Commits

Anonymous committed c6f29bb

r5136@telaviv1: shlomi | 2008-05-14 12:31:28 +0300
Moved the fortunes-list.mak to under the fortunes directory.

Also fixed the makefiles accordingly.

Comments (0)

Files changed (4)

 all: make-dirs docbook_targets latemp_targets fortunes-target sitemap_targets copy_fortunes site-source-install
 
 include lib/make/gmsl/gmsl
-include lib/make/fortunes/fortunes-list.mak
 	
 include include.mak
 include rules.mak
 T2_FORTUNES_DIR = t2/$(FORTUNES_DIR)
 
 include $(T2_FORTUNES_DIR)/arcs-list.mak
+include $(T2_FORTUNES_DIR)/fortunes-list.mak
 
 SITE_SOURCE_INSTALL_TARGET = $(T2_DEST)/meta/site-source/INSTALL
 FORTUNES_TARGET = $(T2_DEST)/humour/fortunes/index.html

lib/make/fortunes/fortunes-list.mak

-FORTUNES_FILES_BASE = \
-	friends \
-	joel-on-software \
-	nyh-sigs \
-	osp_rules \
-	paul-graham \
-	shlomif \
-	shlomif-fav \
-	subversion \
-	tinic

t2/humour/fortunes/Makefile

+include fortunes-list.mak
+
 VER = 0.10.114
 
 DIST_BASE = fortunes-shlomif
 
 PACKAGE_BASE = $(DIST_DIR).tar.gz
 
+FILES = $(FORTUNES_FILES_BASE)
 
 DATS = $(addsuffix .dat,$(FILES))
 
 
 VERSION_FILE = ver.txt
 
-all: dist xhtmls test
+all: dist test
 
 $(DATS):: %.dat : %
 	PATH="$$PATH:/usr/sbin" strfile $<
 xhtmls: $(XHTMLS)
 
 $(XHTMLS): %.xhtml: %.xml convert-to-xhtml.pl
-	bash run-validator.bash $<
+	bash run-validator.bash $< $@
 	perl convert-to-xhtml.pl $<
 	touch $(patsubst %.xml,%.html.wml,$<)
+
+%.show:
+	@echo "$* = $($*)"

t2/humour/fortunes/fortunes-list.mak

+FORTUNES_FILES_BASE = \
+	friends \
+	joel-on-software \
+	nyh-sigs \
+	osp_rules \
+	paul-graham \
+	shlomif \
+	shlomif-fav \
+	subversion \
+	tinic