summaryrefslogtreecommitdiff
path: root/build-aux/Makefile.once.head/00-gnuconf.mk
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-06-17 16:02:51 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-06-17 16:02:51 -0400
commit8b45c2af3c6f9654d133bfbb62969367a65d38ad (patch)
tree52a938b9d04f5cded4ead68845ce4dbad453f627 /build-aux/Makefile.once.head/00-gnuconf.mk
parent303009fbfd0f491ad91e939dbb3a07849add2005 (diff)
fixup
Diffstat (limited to 'build-aux/Makefile.once.head/00-gnuconf.mk')
-rw-r--r--build-aux/Makefile.once.head/00-gnuconf.mk23
1 files changed, 17 insertions, 6 deletions
diff --git a/build-aux/Makefile.once.head/00-gnuconf.mk b/build-aux/Makefile.once.head/00-gnuconf.mk
index 79ecc34..83cb110 100644
--- a/build-aux/Makefile.once.head/00-gnuconf.mk
+++ b/build-aux/Makefile.once.head/00-gnuconf.mk
@@ -16,7 +16,7 @@
# This file is based on ยง7.2 "Makefile Conventions" of the release of
# the GNU Coding Standards dated April 13, 2016.
-gnuconf.pkgname ?= $(PACKAGE)
+gnuconf.pkgname ?= $(firstword $(PACKAGE_TARNAME) $(PACKAGE) $(PACKAGE_NAME))
ifeq ($(gnuconf.pkgname),)
$(error gnuconf.pkgname must be set)
endif
@@ -64,7 +64,7 @@ CCFLAGS ?= $(CFLAGS)
FLEX ?= flex
FLEXFLAGS ?=
INSTALL ?= install
-INSTALLFLAGS ?=
+#INSTALLFLAGS ?=
LD ?= ld
LDFLAGS ?=
LDCONFIG ?= ldconfig #TODO
@@ -92,14 +92,14 @@ CHMOD ?= chmod
CHOWN ?= chown
MKNOD ?= mknod
-# 7.2.3 Variables for Specifying Commands
-# ---------------------------------------
+# 7.2.3: Variables for Specifying Commands
+# ----------------------------------------
INSTALL_PROGRAM ?= $(INSTALL)
INSTALL_DATA ?= ${INSTALL} -m 644
-# 7.2.5 Variables for Installation Directories
-# --------------------------------------------
+# 7.2.5: Variables for Installation Directories
+# ---------------------------------------------
# Root for the installation
prefix ?= /usr/local
@@ -147,3 +147,14 @@ man5ext ?= .5
man6ext ?= .6
man7ext ?= .7
man8ext ?= .8
+
+# 7.2.7: Install Command Categories
+# ---------------------------------
+
+PRE_INSTALL ?=
+POST_INSTALL ?=
+NORMAL_INSTALL ?=
+
+PRE_UNINSTALL ?=
+POST_UNINSTALL ?=
+NORMAL_UNINSTALL ?=