1 |
+ |
# Makefile for winhost |
2 |
+ |
# $Id$ |
3 |
|
|
4 |
< |
FILES = winhost.exe winhost.ini SysTray.ocx MSWINSCK.OCX PDH.DLL |
3 |
< |
ARCNAME = iscream-winhost |
4 |
< |
ZIPEXT = .zip |
5 |
< |
ZIPFILE = $(ARCNAME)$(ZIPEXT) |
6 |
< |
BUILDDIR = build |
7 |
< |
rev = HEAD |
8 |
< |
REVISION = $(rev) |
9 |
< |
CVS = `if test -x /usr/bin/cvs; then echo /usr/bin/cvs; else if test -x /usr/local/bin/cvs; then echo /usr/local/bin/cvs; else echo cvs; fi fi` |
10 |
< |
CVSROOT = /usr/local/proj/co600_10/cvs |
11 |
< |
CVSBUILDTEMP = cvsbuildtemp |
12 |
< |
CVSMODULE = source/host/winhost |
4 |
> |
include Config.inc |
5 |
|
|
6 |
+ |
# these files will be included in the distribution |
7 |
+ |
FILES = winhost.exe winhost.ini SysTray.ocx MSWINSCK.OCX PDH.DLL winhost_install.exe README.txt COPYING.txt |
8 |
+ |
|
9 |
|
all: dist |
10 |
|
|
11 |
|
dist: |
13 |
|
|
14 |
|
cvsbuild: |
15 |
|
$(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSMODULE) |
16 |
< |
cd $(CVSBUILDTEMP) && $(MAKE) build |
16 |
> |
cd $(CVSBUILDTEMP) && $(MAKE) dist |
17 |
|
cp $(CVSBUILDTEMP)/$(BUILDDIR)/$(ZIPFILE) $(BUILDDIR)/$(ARCNAME)-$(REVISION)$(ZIPEXT) |
18 |
|
|
19 |
|
clean: |
20 |
|
rm -Rf $(BUILDDIR)/$(ZIPFILE) |
21 |
|
rm -Rf $(BUILDDIR)/$(ARCNAME)-*$(ZIPEXT) |
22 |
|
rm -Rf $(CVSBUILDTEMP) |
23 |
+ |
|
24 |
+ |
update: |
25 |
+ |
$(CVS) -q -d $(CVSROOT) update |
26 |
+ |
|
27 |
+ |
# for compatibility with other scripts |
28 |
+ |
distclean: clean |