Annotation of db/prgsrc/Makefile, revision 1.15

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\
1.15    ! boris      30:            updateRS2.pl\
        !            31:            updateRS3.pl\
1.11      boris      32:            dumpRS.pl\
                     33:            dumpin2out.pl\
                     34:            dump2dump.pl\
                     35:            checkPBS.pl\
                     36:            loaddump.pl
                     37: 
                     38: LIBS = chgkfiles.pm \
1.10      boris      39:            common.pl\
                     40:            chgk.cnf\
1.11      boris      41:            dbchgk.pm\
                     42:             check.pl
1.10      boris      43: 
1.1       boris      44: 
                     45: CGISCRIPTS = db.cgi
                     46: 
1.12      boris      47: 
                     48: HTMLS = contribute.html \
                     49:        copyright.html \
                     50:        copyright_mozg.html \
                     51:        credits.html \
                     52:        dbmain.html \
                     53:        footer.html \
                     54:        guestbook.html \
                     55:        index.html \
                     56:        random.html \
                     57:        reklama.html \
                     58:        search.html  
                     59: 
                     60: 
                     61: 
                     62: 
1.13      boris      63: 
1.1       boris      64: DBBIN = ../bin
                     65: MANDIR = ../man
1.10      boris      66: LIBDIR = ../lib
1.6       boris      67: CGIBIN = $(ROOT)/public_html/cgi-bin
1.13      boris      68: HTMLDIR = $(ROOT)/public_html/dimrub/db
1.1       boris      69: 
1.10      boris      70: BININSTALL =    ${DBSCRIPTS:%=$(DBBIN)/%}
1.1       boris      71: CGIINSTALL =    ${CGISCRIPTS:%.cgi=$(CGIBIN)/%.cgi}
1.10      boris      72: LIBINSTALL =    ${LIBS:%=$(LIBDIR)/%}
1.13      boris      73: HTMLINSTALL =   ${HTMLS:%.html=$(HTMLDIR)/%.html}
1.10      boris      74: 
1.13      boris      75: all: $(LIBINSTALL) $(BININSTALL) $(CGIINSTALL) $(HTMLINSTALL)
1.1       boris      76: 
                     77: 
1.11      boris      78: $(DBBIN)/%.pl:       %.pl
1.1       boris      79:        ${PERL} -c $<
                     80:        - pod2man --center "Internet Club DB" $< > $*.1
                     81:        - install -m $(LMODE) $*.1 $(MANDIR)/man1
1.10      boris      82:        - rm $*.1
1.1       boris      83:        if [ -f $@ ]; then mv $@ $(TMPSAV); fi
                     84:        cp $< $@
                     85:        chmod $(PMODE) $@
                     86:        if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi
                     87: 
                     88: $(CGIBIN)/%.cgi:       %.cgi
                     89:        ${PERL} -c $<
                     90:        - pod2man --center "Internet Club DB" $< > $*.1
                     91:        - install -m $(LMODE) $*.1 $(MANDIR)/man1
1.10      boris      92:        - rm $*.1       
1.1       boris      93:        if [ -f $@ ]; then mv $@ $(TMPSAV); fi
                     94:        cp $< $@
                     95:        chmod $(PMODE) $@
                     96:        if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi
                     97: 
                     98: 
1.10      boris      99: 
                    100: $(LIBDIR)/%.pm:       %.pm
                    101:        ${PERL} -c $<
                    102:        - pod2man --center "Internet Club DB" $< > $*.3
                    103:        - install -m $(LMODE) $*.3 $(MANDIR)/man3
                    104:        - rm $*.3
1.11      boris     105:        if [ -f $@ ]; then mv $@ $(TMPSAV); fi
                    106:        cp $< $@
                    107:        chmod $(LMODE) $@
                    108:        if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi
                    109: 
                    110: 
                    111: $(LIBDIR)/%.pl:       %.pl
                    112:        ${PERL} -c $<
                    113:        - pod2man --center "Internet Club DB" $< > $*.3
                    114:        - install -m $(LMODE) $*.3 $(MANDIR)/man3
                    115:        - rm $*.3
                    116:        if [ -f $@ ]; then mv $@ $(TMPSAV); fi
                    117:        cp $< $@
                    118:        chmod $(LMODE) $@
                    119:        if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi
                    120: 
                    121: 
                    122: $(LIBDIR)/%.cnf:       %.cnf
                    123:        ${PERL} -c $<
                    124:        - pod2man --center "Internet Club DB" $< > $*.5
                    125:        - install -m $(LMODE) $*.5 $(MANDIR)/man5
                    126:        - rm $*.5
1.10      boris     127:        if [ -f $@ ]; then mv $@ $(TMPSAV); fi
                    128:        cp $< $@
                    129:        chmod $(LMODE) $@
                    130:        if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi
                    131: 
                    132: 
1.12      boris     133: $(HTMLDIR)/%.html:       %.html
                    134:        cp $< $@
                    135: 
1.10      boris     136: 
                    137: 
1.1       boris     138: 
                    139: srcdeliver:
                    140:        $(RSYNC) $(SRCDIR) $(KULICHKI):$(DESTSRCDIR)
                    141: 
                    142: 
                    143: prgdeliver:
                    144:        $(RSYNC) ./ $(KULICHKI):$(DESTPRGSRC)
                    145: 
                    146: dbdeliver:
                    147:        mysqldump -u piataev chgk > $(DUMPDIR)/chgkdump
                    148:        $(RSYNC) $(DUMPDIR)/chgkdump  $(KULICHKI):$(DESTDUMPDIR)
1.12      boris     149: 
1.6       boris     150: 

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