Last change
on this file since 22 was
21,
checked in by tim, 19 years ago
|
Moved release packaging target to higher-level Makefile outside of specific release.
|
-
Property svn:keywords set to
Id
|
File size:
926 bytes
|
Rev | Line | |
---|
[13] | 1 | # $Id: Makefile 21 2005-06-08 00:52:41Z 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 |
---|
| 13 | OPTS=-ggdb -std=gnu89 -pedantic -Wall |
---|
| 14 | #OPTS=-std=gnu89 -pedantic -Wall |
---|
| 15 | |
---|
| 16 | BUILD=$(CURDIR)/build |
---|
| 17 | BUILD_BIN=$(BUILD)/bin |
---|
[9] | 18 | BUILD_DOC=$(BUILD)/doc |
---|
[5] | 19 | |
---|
[21] | 20 | BUILD_TREE=$(BUILD_BIN) $(BUILD_DOC) |
---|
[9] | 21 | SUB_DIRS=src doc |
---|
[5] | 22 | |
---|
| 23 | FILES=$(REGLOOKUP) |
---|
| 24 | .PHONY: $(SUB_DIRS) clean |
---|
| 25 | export |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | all: $(BUILD_TREE) $(SUB_DIRS) |
---|
| 29 | |
---|
[20] | 30 | #XXX: This should be more generalized. |
---|
[11] | 31 | install: all |
---|
[13] | 32 | mkdir -p $(BIN_PREFIX) |
---|
| 33 | mkdir -p $(DOC_PREFIX) |
---|
[20] | 34 | mkdir -p $(MAN_PREFIX)/man1 |
---|
[13] | 35 | cp -r $(BUILD_BIN)/* $(BIN_PREFIX) |
---|
| 36 | cp -r $(BUILD_DOC)/* $(DOC_PREFIX) |
---|
| 37 | # Possibly move it to doc/Makefile |
---|
[14] | 38 | cp -sf $(DOC_PREFIX)/man/man1/* $(MAN_PREFIX)/man1 |
---|
[11] | 39 | |
---|
[13] | 40 | |
---|
[5] | 41 | $(SUB_DIRS): |
---|
| 42 | $(MAKE) -C $@ |
---|
| 43 | |
---|
| 44 | $(BUILD_TREE): |
---|
| 45 | mkdir -p $@ |
---|
| 46 | |
---|
| 47 | clean: |
---|
| 48 | rm -rf $(BUILD)/* |
---|
[11] | 49 | |
---|
Note: See
TracBrowser
for help on using the repository browser.