Subversion Repositories sql-ledger-old

Rev

Rev 96 | Blame | Compare with Previous | Last modification | View Log | RSS feed

PACKAGE = sql-ledger

MODULES = ap.pl ar.pl ca.pl cp.pl ct.pl gl.pl ic.pl \
          ir.pl is.pl oe.pl pe.pl rc.pl rp.pl 
SUBDIRS = bin css doc SL locale sql templates users etc

LIB_FILES       = am.pl favicon.ico login.pl menu.ini setup.pl \
                sql-ledger.conf.default VERSION

SHR_FILES       = sql-ledger.png 

all:

clean:
#       find -type l | xargs -r rm
        rm -rf debian/sql-ledger

install: 
        mkdir -p $(DESTDIR)/usr/lib/sql-ledger
        cp  $(LIB_FILES) $(DESTDIR)/usr/lib/sql-ledger
        mkdir -p $(DESTDIR)/usr/share/sql-ledger
        cp $(SHR_FILES) $(DESTDIR)/usr/share/sql-ledger

        cd $(DESTDIR)/usr/lib/sql-ledger ; \
        ln -sf login.pl admin.pl ; \
        ln -sf am.pl menu.pl ; \
        set -e ; for module in $(MODULES) ; do \
          ln -s am.pl $$module ; \
        done ; \
        ln -sf /etc/sql-ledger/sql-ledger.conf 

        set -e ; for subdir in $(SUBDIRS) ; do \
          $(MAKE) -C $$subdir $@ ; \
        done