1 |
tdb |
1.1 |
# Makefile for build |
2 |
|
|
# $Id$ |
3 |
|
|
|
4 |
|
|
include ../Config.inc |
5 |
|
|
|
6 |
|
|
.PHONY : all |
7 |
|
|
all : dist |
8 |
|
|
|
9 |
|
|
.PHONY : clean |
10 |
|
|
clean : |
11 |
|
|
rm -Rf $(FILES) |
12 |
|
|
rm -f $(CHANGELOG) |
13 |
|
|
rm -Rf $(DISTDIR) |
14 |
|
|
rm -f $(TARFILE) $(TARGZFILE) $(ZIPFILE) |
15 |
|
|
rm -f $(TARGZFILESIG) $(ZIPFILESIG) |
16 |
|
|
rm -f $(MKDISTCHECK) $(MKDISTFILESCHECK) |
17 |
|
|
|
18 |
|
|
.PHONY : dist |
19 |
|
|
dist : $(MKDISTCHECK) $(MKDISTFILESCHECK) |
20 |
|
|
|
21 |
|
|
.PHONY : mk-dist |
22 |
|
|
mk-dist : $(MKDISTCHECK) |
23 |
|
|
$(MKDISTCHECK) : $(MCOMPILECHECK) $(CHANGELOG) |
24 |
|
|
if test ! -d "$(DISTDIR)"; then mkdir -p $(DISTDIR); fi |
25 |
|
|
echo "CVS" > TAR_EXCLUDE_TMP |
26 |
|
|
echo ".#*" >> TAR_EXCLUDE_TMP |
27 |
|
|
tar -cf - -X TAR_EXCLUDE_TMP $(FILES) ChangeLog README COPYING | ( cd $(DISTDIR) && tar -xf - ) |
28 |
|
|
rm -f TAR_EXCLUDE_TMP |
29 |
|
|
@touch $(MKDISTCHECK) |
30 |
|
|
@rm -f $(MKDISTFILESCHECK) |
31 |
|
|
|
32 |
|
|
.PHONY : mk-distfiles |
33 |
|
|
mk-distfiles : $(MKDISTFILESCHECK) |
34 |
|
|
$(MKDISTFILESCHECK) : |
35 |
|
|
if test ! -d "$(DISTDEST)"; then mkdir -p $(DISTDEST); fi |
36 |
|
|
tar -cvf $(DISTDEST)/$(TARFILE) $(DISTDIR) |
37 |
|
|
gzip -fv9 $(DISTDEST)/$(TARFILE) |
38 |
|
|
-$(GPG) $(GPGFLAGS) $(DISTDEST)/$(TARGZFILE) |
39 |
|
|
zip -r -9 $(DISTDEST)/$(ZIPFILE) $(DISTDIR)/* |
40 |
|
|
-$(GPG) $(GPGFLAGS) $(DISTDEST)/$(ZIPFILE) |
41 |
|
|
@touch $(MKDISTFILESCHECK) |
42 |
|
|
|
43 |
|
|
include $(MKINC) |