Rev | Line | |
---|
[16] | 1 | /* $Id: Imakefile,v 1.3 2006/11/01 16:50:31 kywang Exp $ */ |
---|
| 2 | |
---|
| 3 | #ifndef SRC_BUILD |
---|
| 4 | DIRS = $(DESTDIR) \ |
---|
| 5 | $(DESTDIR)/data \ |
---|
| 6 | $(DESTDIR)/shark \ |
---|
| 7 | $(DESTDIR)/shark/config \ |
---|
| 8 | $(DESTDIR)/include \ |
---|
| 9 | $(DESTDIR)/lib \ |
---|
| 10 | $(DESTDIR)/bin \ |
---|
| 11 | $(DESTDIR)/messages |
---|
| 12 | #else |
---|
| 13 | IRULESRC = $(DESTDIR)/config |
---|
| 14 | |
---|
| 15 | DIRS = $(DESTDIR) \ |
---|
| 16 | $(DESTDIR)/shark \ |
---|
| 17 | $(DESTDIR)/shark/config \ |
---|
| 18 | $(DESTDIR)/include \ |
---|
| 19 | $(DESTDIR)/lib \ |
---|
| 20 | $(DESTDIR)/bin |
---|
| 21 | #endif |
---|
| 22 | MkdirTarget($(DIRS)) |
---|
| 23 | |
---|
| 24 | InstallFiles(site.mcr imake.tmpl, $(INSTINCFLAGS), $(DESTDIR)/shark/config) |
---|
| 25 | |
---|
| 26 | #ifndef SRC_BUILD |
---|
| 27 | config2:: install.ti |
---|
| 28 | InstallFileToFile(depend.sh, $(INSTSHELLFLAGS), $(DESTDIR)/bin) |
---|
| 29 | #else |
---|
| 30 | InstallFileToFile(depend.sh, $(INSTSHELLFLAGS), $(DESTDIR)/bin) |
---|
| 31 | #endif |
---|
| 32 | |
---|
| 33 | /* Copy up the old site.mcr to this level from the config subdirectory */ |
---|
| 34 | install.ti:: site.mcr |
---|
| 35 | |
---|
| 36 | #ifdef SRC_BUILD |
---|
| 37 | ../makefile: ../Imakefile $(DESTDIR)/shark/config/imake.tmpl $(DESTDIR)/shark/config/site.mcr |
---|
| 38 | @sh -c 'set -x; cd .. ; \ |
---|
| 39 | $(IMAKE) -Timake.tmpl -I$(DESTDIR)/shark/config -s makefile ; \ |
---|
| 40 | sleep 1; touch Imakefile ; \ |
---|
| 41 | $(MAKE) -f makefile makefile DESTDIR=$(DESTDIR)' |
---|
| 42 | #endif |
---|
| 43 | |
---|
| 44 | install.ti:: ../makefile |
---|
| 45 | |
---|
Note: See
TracBrowser
for help on using the repository browser.