Changeset 11 for Makefile


Ignore:
Timestamp:
05/30/05 10:50:58 (20 years ago)
Author:
tim
Message:

Added .release target and install target to make files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r9 r11  
    22
    33# Installation prefix.  Change to install elsewhere
    4 #  XXX: installation not yet implemented
    54
    65PREFIX=/usr/local
     
    1413BUILD=$(CURDIR)/build
    1514BUILD_BIN=$(BUILD)/bin
    16 BUILD_ETC=$(BUILD)/etc
    1715BUILD_DOC=$(BUILD)/doc
    1816
     
    2725all: $(BUILD_TREE) $(SUB_DIRS)
    2826
     27install: all
     28        mkdir -p $(PREFIX)/bin
     29        mkdir -p $(PREFIX)/share/doc/reglookup
     30        cp -r build/bin/* $(PREFIX)/bin/
     31        cp -r build/doc/* $(PREFIX)/share/doc/reglookup/
     32
    2933$(SUB_DIRS):
    3034        $(MAKE) -C $@
     
    3539clean:
    3640        rm -rf $(BUILD)/*
     41
     42
     43# For developer use only
     44RELEASE_VER=0.1
     45RELEASE_DEST=.
     46.release:
     47        rm -rf .release
     48        mkdir .release
     49        # XXX: checkout version should be based on RELEASE_VER
     50        svn export svn+ssh://pascal/home/projects/subversion/reglookup/\
     51                .release/reglookup-$(RELEASE_VER)
     52        cd .release/reglookup-$(RELEASE_VER)/doc && make generate
     53        cd .release\
     54                && tar cf reglookup-$(RELEASE_VER).tar reglookup-$(RELEASE_VER)\
     55                && gzip -9 reglookup-$(RELEASE_VER).tar
     56        mv .release/reglookup-$(RELEASE_VER).tar.gz $(RELEASE_DEST)
     57        rm -rf .release
Note: See TracChangeset for help on using the changeset viewer.