Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite2da92f

Browse files
author
Bryan Henderson
committed
Rename Makefile to GNUmakefile to catch people using other makes.
1 parent7266928 commite2da92f

File tree

2 files changed

+74
-68
lines changed

2 files changed

+74
-68
lines changed

‎src/GNUmakefile

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#-------------------------------------------------------------------------
2+
#
3+
# Makefile.inc--
4+
# Build and install postgres.
5+
#
6+
# Copyright (c) 1994, Regents of the University of California
7+
#
8+
# IDENTIFICATION
9+
# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile,v 1.1 1996/12/31 07:26:26 bryanh Exp $
10+
#
11+
#-------------------------------------------------------------------------
12+
13+
SRCDIR= .
14+
include Makefile.global
15+
16+
FIND = find
17+
# assuming gnu tar and split here
18+
TAR = tar
19+
SPLIT = split
20+
21+
ETAGS = etags
22+
XARGS = xargs
23+
24+
.DEFAULTall:
25+
@iftest$(PORTNAME) = UNDEFINED;then\
26+
echo You mustset the PORTNAME valuein Makefile.global before\
27+
you can build Postgres.;\
28+
false;\
29+
fi
30+
$(MAKE) -C utils$@
31+
$(MAKE) -C backend$@
32+
$(MAKE) -C libpq$@
33+
ifeq ($(HAVE_Cplusplus), true)
34+
$(MAKE) -C libpq++ $@
35+
endif
36+
ifeq ($(USE_TCL), true)
37+
$(MAKE) -C libpgtcl $@
38+
endif
39+
$(MAKE) -C bin $@
40+
ifneq ($(wildcard man), )
41+
$(MAKE) -C man $@
42+
endif
43+
@if test $@. = all. -o $@. = .; then \
44+
echo All of Postgres95 is successfully made. Ready to install. ;\
45+
fi
46+
47+
TAGS:
48+
rm -f TAGS;\
49+
foriin backend libpq bin;do \
50+
$(FIND)$$i -name'*.[chyl]' -print|$(XARGS)$(ETAGS) -a;\
51+
done
52+
53+
# target to generate a backup tar file and split files that can be
54+
# saved to 1.44M floppy
55+
BACKUP:
56+
rm -f BACKUP.filelist BACKUP.tgz;\
57+
$(FIND). -not -path'*obj/*' -not -path'*data/*' -type f -print> BACKUP.filelist;\
58+
$(TAR) --files-from BACKUP.filelist -c -z -v -f BACKUP.tgz
59+
$(SPLIT) --bytes=1400k BACKUP.tgz pgBACKUP.
60+
61+
.PHONY: TAGS
62+
.PHONY: BACKUP

‎src/Makefile

Lines changed: 12 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,12 @@
1-
#-------------------------------------------------------------------------
2-
#
3-
# Makefile.inc--
4-
# Build and install postgres.
5-
#
6-
# Copyright (c) 1994, Regents of the University of California
7-
#
8-
# IDENTIFICATION
9-
# $Header: /cvsroot/pgsql/src/Makefile,v 1.14 1996/12/19 08:03:46 bryanh Exp $
10-
#
11-
#-------------------------------------------------------------------------
12-
13-
SRCDIR= .
14-
include Makefile.global
15-
16-
FIND = find
17-
# assuming gnu tar and split here
18-
TAR = tar
19-
SPLIT = split
20-
21-
ETAGS = etags
22-
XARGS = xargs
23-
24-
.DEFAULTall:
25-
@set -`$(MAKE) -v -f /dev/null2>&1`.;\
26-
iftest$$1!= GNU;then \
27-
echo"This Makefile requires GNU make.";\
28-
echo"Please read the file INSTALL in this directory for details.";\
29-
false;\
30-
fi
31-
@iftest$(PORTNAME) = UNDEFINED;then\
32-
echo You mustset the PORTNAME valuein Makefile.global before\
33-
you can build Postgres.;\
34-
false;\
35-
fi
36-
$(MAKE) -C utils$@
37-
$(MAKE) -C backend$@
38-
$(MAKE) -C libpq$@
39-
ifeq ($(HAVE_Cplusplus), true)
40-
$(MAKE) -C libpq++ $@
41-
endif
42-
ifeq ($(USE_TCL), true)
43-
$(MAKE) -C libpgtcl $@
44-
endif
45-
$(MAKE) -C bin $@
46-
ifneq ($(wildcard man), )
47-
$(MAKE) -C man $@
48-
endif
49-
@if test $@. = all. -o $@. = .; then \
50-
echo All of Postgres95 is successfully made. Ready to install. ;\
51-
fi
52-
53-
TAGS:
54-
rm -f TAGS;\
55-
foriin backend libpq bin;do \
56-
$(FIND)$$i -name'*.[chyl]' -print|$(XARGS)$(ETAGS) -a;\
57-
done
58-
59-
# target to generate a backup tar file and split files that can be
60-
# saved to 1.44M floppy
61-
BACKUP:
62-
rm -f BACKUP.filelist BACKUP.tgz;\
63-
$(FIND). -not -path'*obj/*' -not -path'*data/*' -type f -print> BACKUP.filelist;\
64-
$(TAR) --files-from BACKUP.filelist -c -z -v -f BACKUP.tgz
65-
$(SPLIT) --bytes=1400k BACKUP.tgz pgBACKUP.
66-
67-
.PHONY: TAGS
68-
.PHONY: BACKUP
1+
# The Postgres make files exploit features of GNU make that other makes
2+
# do not have. Because it is a common mistake for users to try to build
3+
# Postgres with a different make, we have this make file that does nothing
4+
# but tell the user to use GNU make.
5+
6+
# If the user were using GNU make now, this file would not get used because
7+
# GNU make uses a make file named "GNUmakefile" in preference to "Makefile"
8+
# if it exists. Postgres is shipped with a "GNUmakefile".
9+
10+
allinstallcleandepdepend:
11+
@echo"You must use GNU make to use Postgres. It may be installed"
12+
@echo"on your system with the name 'gmake'."

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp