Last change
on this file since 70 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
|
Rev | Line | |
---|
[13] | 1 | # $Id: Makefile 67 2006-07-23 22:59:35Z tim $ |
---|
[5] | 2 | |
---|
[13] | 3 | # Installation prefixes. Change to install elsewhere. |
---|
[5] | 4 | |
---|
| 5 | PREFIX=/usr/local |
---|
[13] | 6 | BIN_PREFIX=$(PREFIX)/bin |
---|
| 7 | DOC_PREFIX=$(PREFIX)/share/doc/reglookup |
---|
| 8 | MAN_PREFIX=$(PREFIX)/man |
---|
[5] | 9 | |
---|
| 10 | ################################################################################ |
---|
| 11 | |
---|
| 12 | CC=gcc |
---|
[23] | 13 | OPTS=-std=gnu89 -pedantic -Wall |
---|
[5] | 14 | |
---|
| 15 | BUILD=$(CURDIR)/build |
---|
| 16 | BUILD_BIN=$(BUILD)/bin |
---|
[9] | 17 | BUILD_DOC=$(BUILD)/doc |
---|
[5] | 18 | |
---|
[21] | 19 | BUILD_TREE=$(BUILD_BIN) $(BUILD_DOC) |
---|
[65] | 20 | SUB_DIRS=lib src doc bin |
---|
[5] | 21 | |
---|
| 22 | FILES=$(REGLOOKUP) |
---|
| 23 | .PHONY: $(SUB_DIRS) clean |
---|
| 24 | export |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | all: $(BUILD_TREE) $(SUB_DIRS) |
---|
| 28 | |
---|
[20] | 29 | #XXX: This should be more generalized. |
---|
[11] | 30 | install: all |
---|
[13] | 31 | mkdir -p $(BIN_PREFIX) |
---|
| 32 | mkdir -p $(DOC_PREFIX) |
---|
[20] | 33 | mkdir -p $(MAN_PREFIX)/man1 |
---|
[67] | 34 | $(MAKE) -C bin install |
---|
[26] | 35 | $(MAKE) -C src install |
---|
[25] | 36 | $(MAKE) -C doc install |
---|
[11] | 37 | |
---|
[13] | 38 | |
---|
[5] | 39 | $(SUB_DIRS): |
---|
| 40 | $(MAKE) -C $@ |
---|
| 41 | |
---|
| 42 | $(BUILD_TREE): |
---|
| 43 | mkdir -p $@ |
---|
| 44 | |
---|
| 45 | clean: |
---|
[39] | 46 | $(MAKE) -C src clean |
---|
| 47 | $(MAKE) -C lib clean |
---|
[5] | 48 | rm -rf $(BUILD)/* |
---|
Note: See
TracBrowser
for help on using the repository browser.