Annotation of db/prgsrc/Makefile, revision 1.13

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: 
1.13    ! boris      60: 
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.13    ! boris      65: HTMLDIR = $(ROOT)/public_html/dimrub/db
1.1       boris      66: 
1.10      boris      67: BININSTALL =    ${DBSCRIPTS:%=$(DBBIN)/%}
1.1       boris      68: CGIINSTALL =    ${CGISCRIPTS:%.cgi=$(CGIBIN)/%.cgi}
1.10      boris      69: LIBINSTALL =    ${LIBS:%=$(LIBDIR)/%}
1.13    ! boris      70: HTMLINSTALL =   ${HTMLS:%.html=$(HTMLDIR)/%.html}
1.10      boris      71: 
1.13    ! boris      72: all: $(LIBINSTALL) $(BININSTALL) $(CGIINSTALL) $(HTMLINSTALL)
1.1       boris      73: 
                     74: 
1.11      boris      75: $(DBBIN)/%.pl:       %.pl
1.1       boris      76:        ${PERL} -c $<
                     77:        - pod2man --center "Internet Club DB" $< > $*.1
                     78:        - install -m $(LMODE) $*.1 $(MANDIR)/man1
1.10      boris      79:        - rm $*.1
1.1       boris      80:        if [ -f $@ ]; then mv $@ $(TMPSAV); fi
                     81:        cp $< $@
                     82:        chmod $(PMODE) $@
                     83:        if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi
                     84: 
                     85: $(CGIBIN)/%.cgi:       %.cgi
                     86:        ${PERL} -c $<
                     87:        - pod2man --center "Internet Club DB" $< > $*.1
                     88:        - install -m $(LMODE) $*.1 $(MANDIR)/man1
1.10      boris      89:        - rm $*.1       
1.1       boris      90:        if [ -f $@ ]; then mv $@ $(TMPSAV); fi
                     91:        cp $< $@
                     92:        chmod $(PMODE) $@
                     93:        if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi
                     94: 
                     95: 
1.10      boris      96: 
                     97: $(LIBDIR)/%.pm:       %.pm
                     98:        ${PERL} -c $<
                     99:        - pod2man --center "Internet Club DB" $< > $*.3
                    100:        - install -m $(LMODE) $*.3 $(MANDIR)/man3
                    101:        - rm $*.3
1.11      boris     102:        if [ -f $@ ]; then mv $@ $(TMPSAV); fi
                    103:        cp $< $@
                    104:        chmod $(LMODE) $@
                    105:        if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi
                    106: 
                    107: 
                    108: $(LIBDIR)/%.pl:       %.pl
                    109:        ${PERL} -c $<
                    110:        - pod2man --center "Internet Club DB" $< > $*.3
                    111:        - install -m $(LMODE) $*.3 $(MANDIR)/man3
                    112:        - rm $*.3
                    113:        if [ -f $@ ]; then mv $@ $(TMPSAV); fi
                    114:        cp $< $@
                    115:        chmod $(LMODE) $@
                    116:        if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi
                    117: 
                    118: 
                    119: $(LIBDIR)/%.cnf:       %.cnf
                    120:        ${PERL} -c $<
                    121:        - pod2man --center "Internet Club DB" $< > $*.5
                    122:        - install -m $(LMODE) $*.5 $(MANDIR)/man5
                    123:        - rm $*.5
1.10      boris     124:        if [ -f $@ ]; then mv $@ $(TMPSAV); fi
                    125:        cp $< $@
                    126:        chmod $(LMODE) $@
                    127:        if [ -f $(TMPSAV)/$(@F) ]; then rm -f $(TMPSAV)/$(@F); fi
                    128: 
                    129: 
1.12      boris     130: $(HTMLDIR)/%.html:       %.html
                    131:        cp $< $@
                    132: 
1.10      boris     133: 
                    134: 
1.1       boris     135: 
                    136: srcdeliver:
                    137:        $(RSYNC) $(SRCDIR) $(KULICHKI):$(DESTSRCDIR)
                    138: 
                    139: 
                    140: prgdeliver:
                    141:        $(RSYNC) ./ $(KULICHKI):$(DESTPRGSRC)
                    142: 
                    143: dbdeliver:
                    144:        mysqldump -u piataev chgk > $(DUMPDIR)/chgkdump
                    145:        $(RSYNC) $(DUMPDIR)/chgkdump  $(KULICHKI):$(DESTDUMPDIR)
1.12      boris     146: 
1.6       boris     147: 

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