chiark
/
gitweb
/
~ian
/
userv-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-urlmap: clarify comments
[userv-utils.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 2f0b156798826d52cc57618ac9264469b0f737e9..eecb31a61cca318a08c7276ebe6cc3133fd5bdfa 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,4
+1,4
@@
-# Copyright (C)
1999
Ian Jackson
+# Copyright (C)
2000,2003
Ian Jackson
#
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
#
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@
-16,23
+16,28
@@
#
# $Id$
#
# $Id$
-VERSION=0.1
+VERSION=0.
2.99.0.
1
all:
all:
- echo >&2 'See README. This is not a unified package.'
+ @echo >&2 'See README. This is not a unified package.'
+
+SUBDIRS_DISTCLEAN= www-cgi ipif
distclean:
distclean:
- find . -name '*~' -o -name '#*#' -o -name '*.o' -o -name core \
- -o -name dist_tmp \
- -print0 | xargs -0r rm --
+ find . \( -name '*~' -o -name '#*#' -o -name '*.o' -o -name core \
+ -o -name dist_tmp -o -name userv-utils-\*.tar.gz \
+ -o -name '.#*' \) \
+ -print0 | xargs -0r rm -rf --
+ for f in $(SUBDIRS_DISTCLEAN); do make -C $$f distclean; done
dist_tmp=dist_tmp/userv-utils-$(VERSION)
dist_tmp=dist_tmp/userv-utils-$(VERSION)
+dist_prune=\( -name CVS -o -name 'dist_tmp*' \)
dist: distclean
rm -rf dist_tmp*
mkdir dist_tmp $(dist_tmp)
dist: distclean
rm -rf dist_tmp*
mkdir dist_tmp $(dist_tmp)
- find .
-name dist_tmp
-prune -o -type d -print | \
+ find .
$(dist_prune)
-prune -o -type d -print | \
sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh
sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh
- find .
-name dist_tmp
-prune -o -type f -print | \
+ find .
$(dist_prune)
-prune -o -type f -print | \
sed -e 's#.*#ln & $(dist_tmp)/&#' | sh
cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)`
gzip -9 $(dist_tmp).tar
sed -e 's#.*#ln & $(dist_tmp)/&#' | sh
cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)`
gzip -9 $(dist_tmp).tar