summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorfergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917>2008-06-19 20:55:52 +0000
committerfergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917>2008-06-19 20:55:52 +0000
commite1770a6bc7390247df76ff3bae2c9d0793299306 (patch)
tree10cbb782c35171a2c6bd953095d1532462c8c8bb /Makefile.in
parent07c3479df1781b3d45b2fa29b30935fef3a27ef2 (diff)
downloaddistcc-e1770a6bc7390247df76ff3bae2c9d0793299306.tar.gz
Change the deb.sh and rpm.sh scripts to remove old .deb or .rpm
files (for the same package and version) before generating the new ones. Similarly change "make install-deb" and "make upload-dist" so that they are more selective in which files they install. This fixes a bug where "make install-deb" tried to install the wrong .deb files, because it just did "rpm -i *.deb", and there can be old .deb files lying around. It also fixes a similar problem in "make upload-dist". Also, add a "tags" target to the Makefile. Reviewers: Craig Silverstein git-svn-id: http://distcc.googlecode.com/svn/trunk@525 01de4be4-8c4a-0410-9132-4925637da917
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in20
1 files changed, 14 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in
index 9194411..11d5f8e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -222,6 +222,9 @@ tarball_sig_bz2 = $(tarball_bz2).asc
tarball_sig_gz = $(tarball_gz).asc
distnews = $(PACKAGE_TARNAME)-$(VERSION).NEWS
+rpm_glob_pattern = "$(PACKAGE)"*[-_.]"$(VERSION)"[-_.]*.deb
+deb_glob_pattern = "$(PACKAGE)"*[-_.]"$(VERSION)"[-_.]*.rpm
+
common_obj = src/arg.o src/argutil.o \
src/cleanup.o src/compress.o \
src/trace.o src/util.o src/io.o src/exec.o \
@@ -946,30 +949,32 @@ upload-man: $(man_HTML)
upload-dist: alldist
-$(MAKE) upload-man
"$(srcdir)/packaging/googlecode_upload.py" \
- `find . -name '*.tar.gz' -o -name '*.tar.bz2' \
- -o -name '*.rpm' -o -name '*.deb'`
+ "$(tarball_gz)" \
+ "$(tarball_bz2)" \
+ packaging/$(rpm_glob_pattern) \
+ packaging/$(deb_glob_pattern)
rpm: dist packaging/rpm.sh packaging/RedHat/rpm.spec
cd packaging && ./rpm.sh $(PACKAGE) $(VERSION)
# This uses the output of 'make rpm' to convert rpm files to deb files
deb: rpm packaging/deb.sh
- cd packaging && ./deb.sh *.rpm
+ cd packaging && ./deb.sh $(PACKAGE) $(VERSION) *.rpm
# We copy .deb files to /tmp to avoid problems with NFS root_squash.
install-deb: deb
tmpdir=`mktemp -d /tmp/distcc-install-deb-XXXXXX` && \
cp packaging/*.deb $$tmpdir && \
cd "$$tmpdir" && \
- sudo dpkg -i *.deb && \
+ sudo dpkg -i $(deb_glob_pattern) && \
rm -rf $$tmpdir
# deb creates rpm files first, which in turn creates .gz files
alldist: deb
@echo dist files created:
@ls -1 "$(tarball_gz)" "$(tarball_bz2)"
- @ls -1 packaging/*[-_.]"$(VERSION)"[-_.]*.rpm
- @ls -1 packaging/*[-_.]"$(VERSION)"[-_.]*.deb
+ @ls -1 packaging/$(rpm_glob_pattern)
+ @ls -1 packaging/$(deb_glob_pattern)
### INSTALL (and UNINSTALL) targets
@@ -1160,3 +1165,6 @@ uninstall-conf:
file="$(DESTDIR)$(sysconfdir)/default/`basename $$p`";\
if [ -e "$$file" ]; then rm -fv "$$file"; fi \
done
+
+tags: $(SRC) $(HEADERS)
+ ctags --defines --globals --typedefs-and-c++ --no-warn $(SRC) $(HEADERS)