Annotation of db/prgsrc/Makefile, revision 1.12

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

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