Changeset 11


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

Added .release target and install target to make files.

Files:
2 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
  • doc/Makefile

    r9 r11  
    66generate:
    77        txt2tags --mask-email -t man -o man/man1/reglookup.1 reglookup.txt
     8        cd man/man1 && gzip -9 reglookup.1
    89
    910build: generate default
Note: See TracChangeset for help on using the changeset viewer.