Last change
on this file since 18 was
17,
checked in by tim, 19 years ago
|
moved project under trunk. (I am a subversion newbie.)
|
-
Property svn:keywords set to
Id
|
File size:
1.4 KB
|
Rev | Line | |
---|
[13] | 1 | # $Id: Makefile 17 2005-06-04 22:08:03Z 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 | |
---|
[9] | 20 | BUILD_TREE=$(BUILD_BIN) $(BUILD_ETC) $(BUILD_DOC) |
---|
| 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 | |
---|
[11] | 30 | install: all |
---|
[13] | 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 |
---|
[14] | 37 | cp -sf $(DOC_PREFIX)/man/man1/* $(MAN_PREFIX)/man1 |
---|
[11] | 38 | |
---|
[13] | 39 | |
---|
[5] | 40 | $(SUB_DIRS): |
---|
| 41 | $(MAKE) -C $@ |
---|
| 42 | |
---|
| 43 | $(BUILD_TREE): |
---|
| 44 | mkdir -p $@ |
---|
| 45 | |
---|
| 46 | clean: |
---|
| 47 | rm -rf $(BUILD)/* |
---|
[11] | 48 | |
---|
| 49 | |
---|
| 50 | # For developer use only |
---|
| 51 | RELEASE_VER=0.1 |
---|
| 52 | RELEASE_DEST=. |
---|
| 53 | .release: |
---|
| 54 | rm -rf .release |
---|
| 55 | mkdir .release |
---|
| 56 | # XXX: checkout version should be based on RELEASE_VER |
---|
| 57 | svn export svn+ssh://pascal/home/projects/subversion/reglookup/\ |
---|
| 58 | .release/reglookup-$(RELEASE_VER) |
---|
| 59 | cd .release/reglookup-$(RELEASE_VER)/doc && make generate |
---|
| 60 | cd .release\ |
---|
| 61 | && tar cf reglookup-$(RELEASE_VER).tar reglookup-$(RELEASE_VER)\ |
---|
| 62 | && gzip -9 reglookup-$(RELEASE_VER).tar |
---|
| 63 | mv .release/reglookup-$(RELEASE_VER).tar.gz $(RELEASE_DEST) |
---|
| 64 | rm -rf .release |
---|
Note: See
TracBrowser
for help on using the repository browser.