Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /current/src/

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

Back to topic list

CVS update: /current/src/

Reply

Author jwbernin
Full name John Berninger
Date 2003-01-28 16:19:00 PST
Message User: jwbernin
Date: 03/01/28 16:19:00

Added
 /current/src/
  Makefile

Log
 Adding src/Makefile to 1.4.0 commit

File Changes:

Directory: /current/src/
========================

File [added]: Makefile
Url: http://current.tigri​s.org/source/browse/​current/src/Makefile​?rev=1.1&content​-type=text/x-cvsweb-​markup
Added lines: 40
---------------
#
# Makefile for installing the python modules for current
#

MODULES = current_apache auth channel config configfile \
                  ConstructParser errata logger misc packagedb \
                  registration up2date
PYFILES = $(addsuffix .py, $(MODULES))
OBJECTS = $(addsuffix .pyc, $(MODULES))

INSTALL_DIRS = $(DATA_DIR)

# default python rules:
%.pyc: %.py
    python -c "import py_compile; py_compile.compile('$<')"

all: sedrules $(OBJECTS)

files: $(PYFILES)

sedrules: config.py
    sed -e 's%^VERSION=.*%VERSI​ON="$(VERSION)"%' \
        -e 's%^MODULES_DIR=.*%M​ODULES_DIR="$(DATA_​DIR)"%' \
        -e 's%^CONFIG_DIR=.*%CO​NFIG_DIR="$(SYSCONF​_DIR)"%' \
        -e 's%^LOG_DIR=.*%LOG_D​IR="$(LOG_DIR)"%' \
        -e 's%^PID_DIR=.*%PID_D​IR="$(PID_DIR)"%' \
        -e '1 s%#!.*%#! $(PYTHON_BIN)%' \
        < $< > $<.tmp
    mv -f $<.tmp $<
    
install: $(OBJECTS)
    $(INSTALL_DIR) $(INSTALL_ROOT)$(DATA_DIR)

    $(INSTALL_DATA) $(PYFILES) $(OBJECTS) $(INSTALL_ROOT)$(DATA_DIR)

clean:
    @rm -fv *.pyc *.pyo *~







--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@curr​ent.tigris.org
For additional commands, e-mail: cvs-help at current dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /current/src/ jwbernin John Berninger 2003-01-28 16:19:00 PST
Messages per page: