OSDN Git Service

Add copyright mentions, per Tom Lane.
[pg-rex/syncrep.git] / src / bin / pgaccess / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile for src/bin/pgaccess
4 #
5 # Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
6 # Portions Copyright (c) 1994, Regents of the University of California
7 #
8 # $Header: /cvsroot/pgsql/src/bin/pgaccess/Attic/Makefile,v 1.16 2001/02/18 18:34:01 momjian Exp $
9 #
10 #-------------------------------------------------------------------------
11
12 subdir = src/bin/pgaccess
13 top_builddir = ../../..
14 include $(top_builddir)/src/Makefile.global
15
16 pgaccessdir = $(datadir)/pgaccess
17
18 all: pgaccess
19
20 pgaccess: pgaccess.sh $(top_builddir)/src/Makefile.global
21         sed -e 's,@WISH@,$(WISH),g' \
22             -e 's,@PGACCESSHOME@,$(pgaccessdir),g' \
23             -e 's,@PGLIB@,$(libdir),g' \
24             -e 's,@DEF_PGPORT@,$(DEF_PGPORT),g' \
25           $< >$@
26         chmod a+x $@
27
28 install: all installdirs
29         $(INSTALL_SCRIPT) pgaccess $(DESTDIR)$(bindir)/pgaccess
30         $(INSTALL_SCRIPT) $(srcdir)/main.tcl $(DESTDIR)$(pgaccessdir)
31         for i in $(srcdir)/lib/*.tcl; do $(INSTALL_DATA) $$i $(DESTDIR)$(pgaccessdir)/lib || exit 1; done
32         for i in $(srcdir)/lib/help/*.hlp; do $(INSTALL_DATA) $$i $(DESTDIR)$(pgaccessdir)/lib/help || exit 1; done
33         for i in $(srcdir)/lib/languages/[a-z]*; do $(INSTALL_DATA) $$i $(DESTDIR)$(pgaccessdir)/lib/languages || exit 1; done
34         for i in $(srcdir)/images/*.gif; do $(INSTALL_DATA) $$i $(DESTDIR)$(pgaccessdir)/images || exit 1; done
35
36 installdirs:
37         $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(pgaccessdir)/lib/help $(DESTDIR)$(pgaccessdir)/lib/languages $(DESTDIR)$(pgaccessdir)/images
38
39 uninstall:
40         rm -f $(DESTDIR)$(bindir)/pgaccess
41         rm -rf $(DESTDIR)$(pgaccessdir)
42
43 clean distclean maintainer-clean:
44         rm -f pgaccess