DIR2HTML = dir2html --epilogue-file=$(HOME)/public_html/yum.phekda.org-google-analytics.html URL = http://yum.phekda.org/fedora/F9/ default: \ index.html \ i386/repodata/repomd.xml \ athlon/repodata/repomd.xml \ x86_64/repodata/repomd.xml \ old/index.html \ old/i386/index.html \ old/x86_64/index.html .PHONY: makedirs dirs: mkdir -p i386 athlon x86_64 old old/i386 old/x86_64 index.html: $(wildcard *.rpm) $(wildcard *.sh) rm -f *debuginfo*.rpm $(DIR2HTML) > $@ old/index.html: $(wildcard old/*.rpm) $(wildcard old/*.sh) rm -f old/*debuginfo*.rpm d=`dirname $@`; f=`basename $@`; cd $$d; $(DIR2HTML) > $$f old/i386/index.html: $(wildcard old/i386/*.rpm) $(wildcard old/i386/*.sh) rm -f old/i386/*debuginfo*.rpm d=`dirname $@`; f=`basename $@`; cd $$d; $(DIR2HTML) > $$f old/x86_64/index.html: $(wildcard old/x86_64/*.rpm) $(wildcard old/x86_64/*.sh) rm -f old/x86_64/*debuginfo*.rpm d=`dirname $@`; f=`basename $@`; cd $$d; $(DIR2HTML) > $$f i386/index.html: $(wildcard i386/*.rpm) rm -f i386/*debuginfo*.rpm d=`dirname $@`; f=`basename $@`; cd $$d; $(DIR2HTML) > $$f i386/repodata/repomd.xml: i386/index.html d=`dirname $@`; \ mkdir -p $$d; \ d=`dirname $$d`; \ cd $$d; \ createrepo `pwd` athlon/index.html: $(wildcard athlon/*.rpm) rm -f athlon/*debuginfo*.rpm d=`dirname $@`; f=`basename $@`; cd $$d; $(DIR2HTML) > $$f athlon/repodata/repomd.xml: athlon/index.html d=`dirname $@`; \ mkdir -p $$d; \ d=`dirname $$d`; \ cd $$d; \ createrepo `pwd` x86_64/index.html: $(wildcard x86_64/*.rpm) rm -f x86_64/*debuginfo*.rpm d=`dirname $@`; f=`basename $@`; cd $$d; $(DIR2HTML) > $$f x86_64/repodata/repomd.xml: x86_64/index.html d=`dirname $@`; \ mkdir -p $$d; \ d=`dirname $$d`; \ cd $$d; \ createrepo `pwd` .PHONY: diff diff: .diff.i386.txt .diff.x86_64.txt -diff -u .diff.i386.txt .diff.x86_64.txt rm -f $^ .diff.i386.txt: ls i386/*.rpm | sed -e 's:i386:ARCH:g' | sort > $@ .diff.x86_64.txt: ls x86_64/*.rpm | sed -e 's:x86_64:ARCH:g' |sort > $@