# Important: distclean `src' last, otherwise Makefile.global
# will be gone too soon.
distclean maintainer-clean:
- -$(MAKE) -C doc $@
- -$(MAKE) -C contrib $@
- -$(MAKE) -C config $@
- -$(MAKE) -C src $@
- -rm -f config.cache config.log config.status GNUmakefile
+ $(MAKE) -C doc $@
+ $(MAKE) -C contrib $@
+ $(MAKE) -C config $@
+ $(MAKE) -C src $@
+ rm -f config.cache config.log config.status GNUmakefile
# Garbage from autoconf:
@rm -rf autom4te.cache/
dist: postgresql-base-$(VERSION).tar.gz postgresql-docs-$(VERSION).tar.gz postgresql-opt-$(VERSION).tar.gz postgresql-test-$(VERSION).tar.gz
endif
dist:
- -rm -rf $(distdir)
+ rm -rf $(distdir)
$(distdir).tar: distdir
$(TAR) chf $@ $(distdir)
$(TAR) cf $@ $(distdir)/src/test
distdir:
- -rm -rf $(distdir)* $(dummy)
+ rm -rf $(distdir)* $(dummy)
for x in `cd $(top_srcdir) && find . -name CVS -prune -o -print`; do \
file=`expr X$$x : 'X\./\(.*\)'`; \
if test -d "$(top_srcdir)/$$file" ; then \
rm -f $(distdir)/README.CVS
distcheck: $(distdir).tar.gz
- -rm -rf $(dummy)
+ rm -rf $(dummy)
mkdir $(dummy)
$(GZIP) -d -c $< | $(TAR) xf -
install_prefix=`cd $(dummy) && pwd`; \
$(MAKE) -C $(distdir) dist
# Room for improvement: Check here whether this distribution tarball
# is sufficiently similar to the original one.
- -rm -rf $(distdir) $(dummy)
+ rm -rf $(distdir) $(dummy)
@echo "Distribution integrity checks out."
.PHONY: dist distdir distcheck
uninstall:
ifdef found_html
- -rm -f $(addprefix $(DESTDIR)$(htmldir)/html/, $(shell gunzip -c $(srcdir)/postgres.tar.gz | tar tf -))
+ rm -f $(addprefix $(DESTDIR)$(htmldir)/html/, $(shell gunzip -c $(srcdir)/postgres.tar.gz | tar tf -))
endif
ifdef found_man
- -rm -f $(addprefix $(DESTDIR)$(mandir)/, $(shell gunzip -c $(srcdir)/man.tar.gz | tar tf - | sed -e 's,man$(sqlmansect_dummy)/,man$(sqlmansectnum)/,' -e 's/.$(sqlmansect_dummy)$$/.$(sqlmansect)/'))
+ rm -f $(addprefix $(DESTDIR)$(mandir)/, $(shell gunzip -c $(srcdir)/man.tar.gz | tar tf - | sed -e 's,man$(sqlmansect_dummy)/,man$(sqlmansectnum)/,' -e 's/.$(sqlmansect_dummy)$$/.$(sqlmansect)/'))
endif
$(MAKE) -C test/thread $@
distclean maintainer-clean:
- -$(MAKE) -C port $@
- -$(MAKE) -C timezone $@
- -$(MAKE) -C backend $@
- -$(MAKE) -C backend/snowball $@
- -$(MAKE) -C include $@
- -$(MAKE) -C interfaces $@
- -$(MAKE) -C bin $@
- -$(MAKE) -C pl $@
- -$(MAKE) -C makefiles $@
- -$(MAKE) -C test $@
- -$(MAKE) -C tutorial NO_PGXS=1 $@
- -$(MAKE) -C test/thread $@
+ $(MAKE) -C port $@
+ $(MAKE) -C timezone $@
+ $(MAKE) -C backend $@
+ $(MAKE) -C backend/snowball $@
+ $(MAKE) -C include $@
+ $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+ $(MAKE) -C pl $@
+ $(MAKE) -C makefiles $@
+ $(MAKE) -C test $@
+ $(MAKE) -C tutorial NO_PGXS=1 $@
+ $(MAKE) -C test/thread $@
rm -f Makefile.port Makefile.global
ifeq ($(enable_shared), yes)
echo '-- Language-specific snowball dictionaries' > $@
cat $(srcdir)/snowball_func.sql.in >> $@
- @set $(LANGUAGES) ; \
+ @set -e; \
+ set $(LANGUAGES) ; \
while [ "$$#" -gt 0 ] ; \
do \
lang=$$1; shift; \
$(INSTALL_SHLIB) $(shlib) '$(DESTDIR)$(pkglibdir)/$(NAME)$(DLSUFFIX)'
endif
$(INSTALL_DATA) $(SQLSCRIPT) '$(DESTDIR)$(datadir)'
- @set $(LANGUAGES) ; \
+ @set -e; \
+ set $(LANGUAGES) ; \
while [ "$$#" -gt 0 ] ; \
do \
lang=$$1; shift; shift; \
uninstall:
rm -f '$(DESTDIR)$(pkglibdir)/$(NAME)$(DLSUFFIX)'
rm -f '$(DESTDIR)$(datadir)/$(SQLSCRIPT)'
- @set $(LANGUAGES) ; \
+ @set -e; \
+ set $(LANGUAGES) ; \
while [ "$$#" -gt 0 ] ; \
do \
lang=$$1; shift; shift; \
$(SQLSCRIPT): Makefile
ifeq ($(enable_shared), yes)
- @set $(CONVERSIONS) ; \
+ @set -e; \
+ set $(CONVERSIONS) ; \
while [ "$$#" -gt 0 ] ; \
do \
name=$$1;shift; \
endif
$(REGRESSION_SCRIPT): Makefile
- @cp regress_prolog $@; \
+ @set -e; \
+ cp regress_prolog $@; \
set $(CONVERSIONS) ; \
while [ "$$#" -gt 0 ] ; \
do \
clean distclean maintainer-clean:
rm -f $(SQLSCRIPT)
- @for dir in $(DIRS); do $(MAKE) -C $$dir $@; done
+ @for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
DIRS+=pgevent
endif
-all install installdirs uninstall distprep:
+all install installdirs uninstall distprep clean distclean maintainer-clean:
@for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
-
-clean distclean maintainer-clean:
- -@for dir in $(DIRS); do $(MAKE) -C $$dir $@; done
DIRS = libpq ecpg
-ALLDIRS = $(DIRS)
-
-all install installdirs uninstall distprep:
+all install installdirs uninstall distprep clean distclean maintainer-clean:
@for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
-
-clean:
- @for dir in $(DIRS); do $(MAKE) -C $$dir $@; done
-
-distclean maintainer-clean:
- @for dir in $(ALLDIRS); do $(MAKE) -C $$dir $@; done
$(MAKE) -C preproc $@
clean distclean maintainer-clean:
- -$(MAKE) -C include $@
- -$(MAKE) -C pgtypeslib $@
- -$(MAKE) -C ecpglib $@
- -$(MAKE) -C compatlib $@
- -$(MAKE) -C preproc $@
- -$(MAKE) -C test clean
+ $(MAKE) -C include $@
+ $(MAKE) -C pgtypeslib $@
+ $(MAKE) -C ecpglib $@
+ $(MAKE) -C compatlib $@
+ $(MAKE) -C preproc $@
+ $(MAKE) -C test clean
check checktcp installcheck: all
$(MAKE) -C test $@
DIRS += tcl
endif
-all install installdirs uninstall distprep:
- @for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit 1; done
-
-clean distclean maintainer-clean:
- @for dir in $(DIRS); do $(MAKE) -C $$dir $@; done
+all install installdirs uninstall distprep clean distclean maintainer-clean:
+ @for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
# We'd like check operations to run all the subtests before failing.
check installcheck:
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global
-all install installdirs uninstall distprep:
+all install installdirs uninstall distprep clean distclean maintainer-clean:
$(MAKE) -C src $@
-
-clean distclean maintainer-clean:
- -$(MAKE) -C src $@
bench.sql:
x=1; \
for i in `ls query[0-9][0-9]`; do \
- echo "select $$x as x" >> bench.sql; \
- cat $$i >> bench.sql; \
- x=`expr $$x + 1`; \
+ echo "select $$x as x" >> bench.sql && \
+ cat $$i >> bench.sql && \
+ x=`expr $$x + 1` || exit; \
done
runtest: $(OUTFILES)
clean:
rm -f $(PROGS)
for d in $(DIRS); do \
- $(MAKE) -C $$d clean; \
+ $(MAKE) -C $$d clean || exit; \
done
check-%: all
-#
-# Makefile for example programs
-#
-
all:
- -@echo "make: Nothing to be done for \`all'."
test:
- @./runall
+ ./runall
clean:
rm -f *.out
-#
-# Makefile for example programs
-#
-
all:
- -@echo "make: Nothing to be done for \`all'."
test:
- @./runall
+ ./runall
clean:
rm -f *.out
-#
-# Makefile for example programs
-#
-
all:
- -@echo "make: Nothing to be done for \`all'."
test:
- @./runall
+ ./runall
clean:
rm -f *.out
-#
-# Makefile for example programs
-#
-
all:
- -@echo "make: Nothing to be done for \`all'."
test:
- @./runall
+ ./runall
clean:
rm -f *.out
# Tablespace setup
.PHONY: tablespace-setup
tablespace-setup:
- -rm -rf ./testtablespace
+ rm -rf ./testtablespace
mkdir ./testtablespace
##