OSDN Git Service

Add copyright mentions, per Tom Lane.
[pg-rex/syncrep.git] / src / bin / ipcclean / Makefile
index 5202446..de7bcfe 100644 (file)
@@ -1,31 +1,32 @@
 #-------------------------------------------------------------------------
 #
-# Makefile.inc--
-#    Makefile for bin/initdb
+# Makefile for src/bin/ipcclean
 #
-# Copyright (c) 1994, Regents of the University of California
+# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
+# Portions Copyright (c) 1994, Regents of the University of California
 #
-#
-# IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/Makefile,v 1.4 1998/04/05 22:00:48 momjian Exp $
+# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/Makefile,v 1.15 2001/02/18 18:33:59 momjian Exp $
 #
 #-------------------------------------------------------------------------
 
-SRCDIR= ../..
-include ../../Makefile.global
-
-SEDSCRIPT= \
-    -e "s^_fUnKy_IPCCLEANPATH_sTuFf_^$(IPCSDIR)^g" 
+subdir = src/bin/ipcclean
+top_builddir = ../../..
+include $(top_builddir)/src/Makefile.global
 
 all: ipcclean
 
-ipcclean:
-       sed $(SEDSCRIPT) <ipcclean.sh >ipcclean
+ipcclean: ipcclean.sh
+       cp $< $@
+       chmod a+x $@
 
-install: ipcclean
-       $(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$<
+install: all installdirs
+       $(INSTALL_SCRIPT) ipcclean $(DESTDIR)$(bindir)/ipcclean
 
-clean:
-       rm -f ipcclean
+installdirs:
+       $(mkinstalldirs) $(DESTDIR)$(bindir)
 
-dep:
+uninstall:
+       rm -f $(DESTDIR)$(bindir)/ipcclean
+
+clean distclean maintainer-clean:
+       rm -f ipcclean