]> granicus.if.org Git - postgresql/commitdiff
Clean up garbage.
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 13 Jan 2001 02:18:31 +0000 (02:18 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 13 Jan 2001 02:18:31 +0000 (02:18 +0000)
contrib/intarray/Makefile

index 05f422d25eda0350b4c25e1ee89898bac8bbf55b..151817f7e1079d79a48f7677ca679459683c2ef3 100644 (file)
@@ -1,3 +1,5 @@
+# $Header: /cvsroot/pgsql/contrib/intarray/Makefile,v 1.2 2001/01/13 02:18:31 petere Exp $
+
 subdir = contrib/intarray
 top_builddir = ../..
 include $(top_builddir)/src/Makefile.global
@@ -21,49 +23,31 @@ include $(top_srcdir)/src/Makefile.shlib
 
 
 $(NAME).sql: $(NAME).sql.in
-       sed -e 's:MODULE_PATHNAME:$(libdir)/$(shlib):g' < $< > $@
+       sed 's,MODULE_PATHNAME,$(libdir)/$(shlib),g' $< >$@
 
 .PHONY: submake
 submake:
        $(MAKE) -C $(top_builddir)/src/test/regress pg_regress
 
-# against installed postmaster
-installcheck: submake
-       @echo "'make installcheck' is not supported."   
-
 installcheck: submake
        $(top_builddir)/src/test/regress/pg_regress _int
 
-# in-tree test doesn't work yet (no way to install my shared library)
-#check: all submake
-#      $(top_builddir)/src/test/regress/pg_regress --temp-install \
-#        --top-builddir=$(top_builddir) _int
 check:
-       @echo "'make check' is not supported."
-       @echo "Do 'make install', then 'make installcheck' instead."
+       @echo "'$(MAKE) check' is not supported."
+       @echo "Do '$(MAKE) install', then '$(MAKE) installcheck' instead."
 
 install: all installdirs install-lib
-       #$(INSTALL_DATA) $(srcdir)/README.$(NAME)  $(docdir)/contrib
+       $(INSTALL_DATA) $(srcdir)/README.intarray $(docdir)/contrib
        $(INSTALL_DATA) $(NAME).sql $(datadir)/contrib
 
 installdirs:
        $(mkinstalldirs) $(docdir)/contrib $(datadir)/contrib $(libdir)
 
 uninstall: uninstall-lib
-       rm -f $(docdir)/contrib/README.$(NAME) $(datadir)/contrib/$(NAME).sql
+       rm -f $(docdir)/contrib/README.intarray $(datadir)/contrib/$(NAME).sql
 
 clean distclean maintainer-clean: clean-lib
-       rm -f *.so y.tab.c y.tab.h $(OBJS) $(NAME).sql
+       rm -f $(OBJS) $(NAME).sql
 # things created by various check targets
-       rm -rf results tmp_check log
-       rm -f regression.diffs regression.out regress.out run_check.out
-ifeq ($(PORTNAME), win)
-       rm -f regress.def
-endif
-
-depend dep:
-       $(CC) -MM $(CFLAGS) *.c >depend
-
-ifeq (depend,$(wildcard depend))
-include depend
-endif
+       rm -rf results
+       rm -f regression.diffs regression.out