source: trunk/Makefile @ 69

Last change on this file since 69 was 67, checked in by tim, 18 years ago

fixed install bug for reglookup-timeline

  • Property svn:keywords set to Id
File size: 845 bytes
Line 
1# $Id: Makefile 67 2006-07-23 22:59:35Z 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=-std=gnu89 -pedantic -Wall
14
15BUILD=$(CURDIR)/build
16BUILD_BIN=$(BUILD)/bin
17BUILD_DOC=$(BUILD)/doc
18
19BUILD_TREE=$(BUILD_BIN) $(BUILD_DOC)
20SUB_DIRS=lib src doc bin
21
22FILES=$(REGLOOKUP)
23.PHONY: $(SUB_DIRS) clean
24export
25
26
27all: $(BUILD_TREE) $(SUB_DIRS)
28
29#XXX: This should be more generalized.
30install: all
31        mkdir -p $(BIN_PREFIX)
32        mkdir -p $(DOC_PREFIX)
33        mkdir -p $(MAN_PREFIX)/man1
34        $(MAKE) -C bin install
35        $(MAKE) -C src install
36        $(MAKE) -C doc install
37
38
39$(SUB_DIRS):
40        $(MAKE) -C $@
41
42$(BUILD_TREE):
43        mkdir -p $@
44
45clean:
46        $(MAKE) -C src clean
47        $(MAKE) -C lib clean
48        rm -rf $(BUILD)/*
Note: See TracBrowser for help on using the repository browser.