source: releases/release-0.1/Makefile @ 52

Last change on this file since 52 was 19, checked in by tim, 19 years ago

Adjusted .release target after moving project under trunk/ and releasing 0.1

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Makefile 19 2005-06-04 22:25:21Z tim $
2
3# Installation prefixes.  Change to install elsewhere.
4
5PREFIX=/usr/local
6BIN_PREFIX=$(PREFIX)/bin
7DOC_PREFIX=$(PREFIX)/share/doc/reglookup
8MAN_PREFIX=$(PREFIX)/man
9
10################################################################################
11
12CC=gcc
13OPTS=-ggdb -std=gnu89 -pedantic -Wall
14#OPTS=-std=gnu89 -pedantic -Wall
15
16BUILD=$(CURDIR)/build
17BUILD_BIN=$(BUILD)/bin
18BUILD_DOC=$(BUILD)/doc
19
20BUILD_TREE=$(BUILD_BIN) $(BUILD_ETC) $(BUILD_DOC)
21SUB_DIRS=src doc
22
23FILES=$(REGLOOKUP)
24.PHONY: $(SUB_DIRS) clean
25export
26
27
28all: $(BUILD_TREE) $(SUB_DIRS)
29
30install: all
31        mkdir -p $(BIN_PREFIX)
32        mkdir -p $(DOC_PREFIX)
33        cp -r $(BUILD_BIN)/* $(BIN_PREFIX)
34        cp -r $(BUILD_DOC)/* $(DOC_PREFIX)
35        #XXX: This should be more generalized. 
36        #     Possibly move it to doc/Makefile
37        cp -sf $(DOC_PREFIX)/man/man1/*  $(MAN_PREFIX)/man1
38
39
40$(SUB_DIRS):
41        $(MAKE) -C $@
42
43$(BUILD_TREE):
44        mkdir -p $@
45
46clean:
47        rm -rf $(BUILD)/*
48
49
50# For developer use only
51RELEASE_VER=0.1
52RELEASE_DEST=.
53.release:
54        rm -rf .release
55        mkdir .release
56        svn export svn+ssh://sentinelchicken.org/home/projects/subversion/reglookup/releases/release-$(RELEASE_VER)/\
57                .release/reglookup-$(RELEASE_VER)
58        cd .release/reglookup-$(RELEASE_VER)/doc && make generate
59        cd .release\
60                && tar cf reglookup-$(RELEASE_VER).tar reglookup-$(RELEASE_VER)\
61                && gzip -9 reglookup-$(RELEASE_VER).tar
62        mv .release/reglookup-$(RELEASE_VER).tar.gz $(RELEASE_DEST)
63        rm -rf .release
Note: See TracBrowser for help on using the repository browser.