1 |
tdb |
1.1 |
|
2 |
|
|
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 |
13 |
|
|
|
14 |
|
|
all: dist |
15 |
|
|
|
16 |
|
|
dist: |
17 |
|
|
zip -9 $(BUILDDIR)/$(ZIPFILE) $(FILES) |
18 |
|
|
|
19 |
|
|
cvsbuild: |
20 |
|
|
$(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSMODULE) |
21 |
tdb |
1.2 |
cd $(CVSBUILDTEMP) && $(MAKE) dist |
22 |
tdb |
1.1 |
cp $(CVSBUILDTEMP)/$(BUILDDIR)/$(ZIPFILE) $(BUILDDIR)/$(ARCNAME)-$(REVISION)$(ZIPEXT) |
23 |
|
|
|
24 |
|
|
clean: |
25 |
|
|
rm -Rf $(BUILDDIR)/$(ZIPFILE) |
26 |
|
|
rm -Rf $(BUILDDIR)/$(ARCNAME)-*$(ZIPEXT) |
27 |
|
|
rm -Rf $(CVSBUILDTEMP) |
28 |
tdb |
1.2 |
|
29 |
|
|
update: |
30 |
|
|
$(CVS) -q -d $(CVSROOT) update |
31 |
tdb |
1.3 |
|
32 |
|
|
distclean: clean |