Annotation of db/prgsrc/Makefile, revision 1.14

1.6       boris       1: ifndef ROOT
                      2: ROOT = /home/znatoki
                      3: endif
1.1       boris       4: PERL = perl
                      5: TMPSAV = /tmp
                      6: PMODE = 775
                      7: LMODE = 664
1.7       boris       8: KULICHKI=znatoki.kulichki.net
1.4       boris       9: RSYNC = rsync -ruvpte ssh --delete --progress --rsync-path='~/bin/rsync'
1.5       boris      10: DESTSRCDIR=~piataev/public_html/dimrub/src/
1.3       boris      11: SRCDIR=../baza/
1.5       boris      12: DESTPRGSRC=~piataev/db/prgsrc
1.1       boris      13: DUMPDIR=../dump
                     14: DESTDUMPDIR=/tmp/
                     15: 
                     16: DBSCRIPTS = mkdb.pl \
                     17:            updatem.pl \
                     18:            updatedb.pl \
                     19:            changecities.pl\
                     20:            createindex.pl\
                     21:            updateindex.pl \
1.8       boris      22:            addlinks.pl \
1.9       boris      23:            deletefiles.pl\
1.10      boris      24:            renamefile.pl \
1.11      boris      25:            makecheck.pl\
                     26:            mkRS.pl\
1.14    ! boris      27:            delRS.pl\
1.11      boris      28:            updateRS.pl\
                     29:            updateRS1.pl\
                     30:            dumpRS.pl\
                     31:            dumpin2out.pl\
                     32:            dump2dump.pl\
                     33:            checkPBS.pl\
                     34:            loaddump.pl
                     35: 
                     36: LIBS = chgkfiles.pm \
1.10      boris      37:            common.pl\
                     38:            chgk.cnf\
1.11      boris      39:            dbchgk.pm\
                     40:             check.pl
1.10      boris      41: 
1.1       boris      42: 
                     43: CGISCRIPTS = db.cgi
                     44: 
1.12      boris      45: 
                     46: HTMLS = contribute.html \
                     47:        copyright.html \
                     48:        copyright_mozg.html \
                     49:        credits.html \
                     50:        dbmain.html \
                     51:        footer.html \
                     52:        guestbook.html \
                     53:        index.html \
                     54:        random.html \
                     55:        reklama.html \
                     56:        search.html  
                     57: 
                     58: 
                     59: 
                     60: 
1.13      boris      61: 
1.1       boris      62: DBBIN = ../bin
                     63: MANDIR = ../man
1.10      boris      64: LIBDIR = ../lib
1.6       boris      65: CGIBIN = $(ROOT)/public_html/cgi-bin
1.13      boris      66: HTMLDIR = $(ROOT)/public_html/dimrub/db
1.1       boris      67: 
1.10      boris      68: BININSTALL =    ${DBSCRIPTS:%=$(DBBIN)/%}
1.1       boris      69: CGIINSTALL =    ${CGISCRIPTS:%.cgi=$(CGIBIN)/%.cgi}
1.10      boris      70: LIBINSTALL =    ${LIBS:%=$(LIBDIR)/%}
1.13      boris      71: HTMLINSTALL =   ${HTMLS:%.html=$(HTMLDIR)/%.html}
1.10      boris      72: 
1.13      boris      73: all: $(LIBINSTALL) $(BININSTALL) $(CGIINSTALL) $(HTMLINSTALL)
1.1       boris      74: 
                     75: 
1.11      boris      76: $(DBBIN)/%.pl:       %.pl
1.1       boris      77:        ${PERL} -c $<
                     78:        - pod2man --center "Internet Club DB" $< > $*.1
                     79:        - install -m $(LMODE) $*.1 $(MANDIR)/man1
1.10      boris      80:        - rm $*.1
1.1       boris      81:        if [ -f $@ ]; then mv $@ $(TMPSAV); fi
                     82:        cp $< $@
                     83:        chmod $(PMODE) $@
                     84:        if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi
                     85: 
                     86: $(CGIBIN)/%.cgi:       %.cgi
                     87:        ${PERL} -c $<
                     88:        - pod2man --center "Internet Club DB" $< > $*.1
                     89:        - install -m $(LMODE) $*.1 $(MANDIR)/man1
1.10      boris      90:        - rm $*.1       
1.1       boris      91:        if [ -f $@ ]; then mv $@ $(TMPSAV); fi
                     92:        cp $< $@
                     93:        chmod $(PMODE) $@
                     94:        if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi
                     95: 
                     96: 
1.10      boris      97: 
                     98: $(LIBDIR)/%.pm:       %.pm
                     99:        ${PERL} -c $<
                    100:        - pod2man --center "Internet Club DB" $< > $*.3
                    101:        - install -m $(LMODE) $*.3 $(MANDIR)/man3
                    102:        - rm $*.3
1.11      boris     103:        if [ -f $@ ]; then mv $@ $(TMPSAV); fi
                    104:        cp $< $@
                    105:        chmod $(LMODE) $@
                    106:        if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi
                    107: 
                    108: 
                    109: $(LIBDIR)/%.pl:       %.pl
                    110:        ${PERL} -c $<
                    111:        - pod2man --center "Internet Club DB" $< > $*.3
                    112:        - install -m $(LMODE) $*.3 $(MANDIR)/man3
                    113:        - rm $*.3
                    114:        if [ -f $@ ]; then mv $@ $(TMPSAV); fi
                    115:        cp $< $@
                    116:        chmod $(LMODE) $@
                    117:        if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi
                    118: 
                    119: 
                    120: $(LIBDIR)/%.cnf:       %.cnf
                    121:        ${PERL} -c $<
                    122:        - pod2man --center "Internet Club DB" $< > $*.5
                    123:        - install -m $(LMODE) $*.5 $(MANDIR)/man5
                    124:        - rm $*.5
1.10      boris     125:        if [ -f $@ ]; then mv $@ $(TMPSAV); fi
                    126:        cp $< $@
                    127:        chmod $(LMODE) $@
                    128:        if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi
                    129: 
                    130: 
1.12      boris     131: $(HTMLDIR)/%.html:       %.html
                    132:        cp $< $@
                    133: 
1.10      boris     134: 
                    135: 
1.1       boris     136: 
                    137: srcdeliver:
                    138:        $(RSYNC) $(SRCDIR) $(KULICHKI):$(DESTSRCDIR)
                    139: 
                    140: 
                    141: prgdeliver:
                    142:        $(RSYNC) ./ $(KULICHKI):$(DESTPRGSRC)
                    143: 
                    144: dbdeliver:
                    145:        mysqldump -u piataev chgk > $(DUMPDIR)/chgkdump
                    146:        $(RSYNC) $(DUMPDIR)/chgkdump  $(KULICHKI):$(DESTDUMPDIR)
1.12      boris     147: 
1.6       boris     148: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>