Hi Rob,

I added a new makefile to CVS - Makefile.devel. It includes all static stuff. Simply call "make -f Makefile.devel info" and you see the options. The file itself is really simple and it should be easy to understand what we do to generate all the necessary files. I hope this helps you a little bit more.

Michael
--
-------------------------------------------------------------------
Michael Bell                   Email: [EMAIL PROTECTED]
ZE Computer- und Medienservice            Tel.: +49 (0)30-2093 2482
(Computing Centre)                        Fax:  +49 (0)30-2093 2704
Humboldt-University of Berlin
Unter den Linden 6
10099 Berlin                   Email (private): [EMAIL PROTECTED]
Germany                                       http://www.openca.org
#!/bin/sh

## (C) Copyright 2004 Michael Bell
## Same license like complete OpenCA distribution

## This file is for developers and package maintainers only.
## It demonstrates how to generate all the necessary files
## before you can compile OpenCA if you have some problems
## with the results of our autotool versions.
## This file is also used to create releases and snapshots.

MAKEFILE = $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))

default:        help

info help:
        @echo "force-auto-files  enforce the generation of all autotool files"
        @echo "auto-files        generate all nonexisting or outdated autotool files"
        @echo "dist              generate distribution"
        @echo "snap              generate snapshot"
        @echo "source            generate source tarball"
        @echo "clean             cleanup files"

########################################################
##               BEGIN AUTOTOOL STUFF                 ##
########################################################

## we always do a complete run of the autotools to avoid
## version problems with the different autotools

## enforce a new generation

force-auto-files:
        make -f $(MAKEFILE) auto-root
        make -f $(MAKEFILE) auto-scep
        make -f $(MAKEFILE) auto-ocspd
        make -f $(MAKEFILE) auto-openca-sv
        make -f $(MAKEFILE) clean

## files and their dependiencies

auto-files:     configure \
        src/scep/configure src/scep/Makefile.in \
        src/ocspd/configure src/ocspd/Makefile.in \
        src/openca-sv/configure src/openca-sv/Makefile.in

configure:      configure.in
        make -f $(MAKEFILE) auto-root

src/scep/configure: src/scep/configure.in
        make -f $(MAKEFILE) auto-scep

src/scep/Makefile.in:   src/scep/Makefile.am
        make -f $(MAKEFILE) auto-scep

src/ocspd/configure:    src/ocspd/configure.in
        make -f $(MAKEFILE) auto-ocspd

src/ocspd/Makefile.in:  src/ocspd/Makefile.am
        make -f $(MAKEFILE) auto-ocspd

src/openca-sv/configure:        src/openca-sv/configure.in
        make -f $(MAKEFILE) auto-openca-sv

src/openca-sv/Makefile.in:      src/openca-sv/Makefile.am
        make -f $(MAKEFILE) auto-openca-sv

## autotool runs

auto-root:
        autoconf

auto-scep:
        cd src/scep; libtoolize --copy --force
        cd src/scep; aclocal -I build # --output=build/aclocal.m4
        cd src/scep; automake --add-missing --copy
        cd src/scep; autoconf

auto-ocspd:
        cd src/ocspd; libtoolize --copy --force
        cd src/ocspd; aclocal -I build # --output=build/aclocal.m4
        cd src/ocspd; automake --add-missing --copy
        cd src/ocspd; autoconf

auto-openca-sv:
        cd src/openca-sv; libtoolize --copy --force
        cd src/openca-sv; aclocal -I build # --output=build/aclocal.m4
        cd src/openca-sv; automake --add-missing --copy
        cd src/openca-sv; autoconf

clean:
        make -f $(MAKEFILE) clean-autom4te SUBTARGET=.
        make -f $(MAKEFILE) clean-autom4te SUBTARGET=src/ocspd
        make -f $(MAKEFILE) clean-autom4te SUBTARGET=src/openca-sv
        make -f $(MAKEFILE) clean-autom4te SUBTARGET=src/scep

clean-autom4te:
        rm $(SUBTARGET)/autom4te.cache/output.0
        rm $(SUBTARGET)/autom4te.cache/requests
        rm $(SUBTARGET)/autom4te.cache/traces.0
        rmdir $(SUBTARGET)/autom4te.cache

########################################################
##                END AUTOTOOL STUFF                  ##
########################################################

########################################################
##               BEGIN RELEASE STUFF                  ##
########################################################

TODAY   = `/bin/date +%Y%m%d`
VERSION = "0.9.2"
ECHO    = "echo"
PWD     = "pwd"
SED     = "sed"
RM      = "rm"
CHOWN   = "chown"
MV      = "mv"

SNAP    = SNAP-$(TODAY)
VER     = $(VERSION)
C_DIR   = `$(ECHO) "$(PWD)" | $(SED) "s|/.*/||g"`
G_DIR   = `$(ECHO) "$(PWD)"`

dist:
        @$(ECHO)
        @$(RM) OpenCA-*$(VER).tar.gz
        @$(ECHO) "Creating Distribution TAR archive $(C_DIR) ... $(G_DIR)"
        @$(CHOWN) -R $(dist_user).$(dist_group) *;
        @( cd ..; $(MV) $(C_DIR) OpenCA-$(VER) ; \
                $(TAR) cpf OpenCA-$(VER).tar --exclude "CVS" OpenCA-$(VER);\
                $(GZIP) OpenCA-$(VER).tar;\
                $(MV) OpenCA-$(VER) $(C_DIR) );
        @$(MV) ../OpenCA-$(VER).tar.gz .;
        @$(ECHO) "Done.";
        @$(ECHO)

snap:
        @$(ECHO)
        @$(ECHO) -n "Creating Distribution TAR archive $(G_DIR)... "
        @$(CHOWN) -R $(dist_user).$(dist_group) *;
        @( cd ..; \
                $(CP) -rf $(C_DIR) /tmp/OpenCA-$(SNAP) ; \
                cd /tmp/OpenCA-$(SNAP) && $(MAKE) distclean ; \
                cd /tmp ; \
                $(TAR) cpf OpenCA-$(SNAP).tar --exclude "CVS" OpenCA-$(SNAP);\
                $(GZIP) OpenCA-$(SNAP).tar;\
                $(RM) -rf OpenCA-$(SNAP) ; \
                );
        @$(MV) /tmp/OpenCA-$(SNAP).tar.gz .;
        @$(ECHO) "Done.";
        @$(ECHO)

rpms:
        @$(ECHO)
        @$(ECHO) "Creating Distribution RPMS ... "
        @contrib/rpm/build-rpm.sh all $(DISTRIBUTION)

source: 
        @$(ECHO)
        @$(RM) OpenCA-*$(VER).tar.gz
        @$(ECHO) "Creating Distribution source archive $(C_DIR) ... "
        @$(CHOWN) -R $(dist_user).$(dist_group) *;
        @( cd ..; $(MV) $(C_DIR) OpenCA-$(PACKAGE)-$(VER) ; \
                $(TAR) cpf OpenCA-$(PACKAGE)-$(VER).tar --exclude "CVS" 
OpenCA-$(PACKAGE)-$(VER);\
                $(GZIP) OpenCA-$(PACKAGE)-$(VER).tar;\
                $(MV) OpenCA-$(PACKAGE)-$(VER) $(C_DIR) );
        @$(MV) ../OpenCA-$(PACKAGE)-$(VER).tar.gz .;
        @$(ECHO) "Done."
        @$(ECHO)

########################################################
##                END RELEASE STUFF                   ##
########################################################

Reply via email to