summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/Makefile.each.tail/11-gnustuff.mk (renamed from build-aux/Makefile.each.tail/11-gnu.mk)28
-rw-r--r--build-aux/Makefile.once.head/11-gnu.mk143
-rw-r--r--build-aux/Makefile.once.head/11-gnustuff.mk30
-rw-r--r--build-aux/Makefile.once.tail/11-gnustuff.mk (renamed from build-aux/Makefile.once.tail/11-gnu.mk)0
4 files changed, 44 insertions, 157 deletions
diff --git a/build-aux/Makefile.each.tail/11-gnu.mk b/build-aux/Makefile.each.tail/11-gnustuff.mk
index c7cb1cb..fe76eb8 100644
--- a/build-aux/Makefile.each.tail/11-gnu.mk
+++ b/build-aux/Makefile.each.tail/11-gnustuff.mk
@@ -16,31 +16,31 @@
# 7.2.6: Standard Targets for Users
# ---------------------------------
-std.gen_files += $(foreach f,$(gnu.info_docs), $f.info )
-std.sys_files += $(foreach f,$(gnu.info_docs), $(infodir)/$f.info )
+std.gen_files += $(foreach f,$(gnustuff.info_docs), $f.info )
+std.sys_files += $(foreach f,$(gnustuff.info_docs), $(infodir)/$f.info )
-$(foreach d,$(gnu.program_dirs),$(eval $(call _gnu.install_program,$d)))
-$(foreach d,$(gnu.data_dirs) ,$(eval $(call _gnu.install_data,$d)))
+$(foreach d,$(gnustuff.program_dirs),$(eval $(call _gnustuff.install_program,$d)))
+$(foreach d,$(gnustuff.data_dirs) ,$(eval $(call _gnustuff.install_data,$d)))
#all: std
#install: std
-$(outdir)/install-html: $(foreach f,$(gnu.info_docs), $(DESTDIR)$(htmldir)/$f.html )
-$(outdir)/install-dvi : $(foreach f,$(gnu.info_docs), $(DESTDIR)$(dvidir)/$f.dvi )
-$(outdir)/install-pdf : $(foreach f,$(gnu.info_docs), $(DESTDIR)$(pdfdir)/$f.pdf )
-$(outdir)/install-ps : $(foreach f,$(gnu.info_docs), $(DESTDIR)$(psdir)/$f.ps )
+$(outdir)/install-html: $(foreach f,$(gnustuff.info_docs), $(DESTDIR)$(htmldir)/$f.html )
+$(outdir)/install-dvi : $(foreach f,$(gnustuff.info_docs), $(DESTDIR)$(dvidir)/$f.dvi )
+$(outdir)/install-pdf : $(foreach f,$(gnustuff.info_docs), $(DESTDIR)$(pdfdir)/$f.pdf )
+$(outdir)/install-ps : $(foreach f,$(gnustuff.info_docs), $(DESTDIR)$(psdir)/$f.ps )
#uninstall: std
$(outdir)/install-strip: install
- $(STRIP) $(filter $(addsuffix /%,$(gnu.program_dirs)),$(std.sys_files/$(@D)))
+ $(STRIP) $(filter $(addsuffix /%,$(gnustuff.program_dirs)),$(std.sys_files/$(@D)))
#clean: std
#distclean: std
#mostlyclean: std
#maintainer-clean: std
TAGS: TODO
-$(outdir)/info: $(addsuffix .info,$(gnu.info_docs))
-$(outdir)/dvi : $(addsuffix .dvi ,$(gnu.info_docs))
-$(outdir)/html: $(addsuffix .html,$(gnu.info_docs))
-$(outdir)/pdf : $(addsuffix .pdf ,$(gnu.info_docs))
-$(outdir)/ps : $(addsuffix .ps ,$(gnu.info_docs))
+$(outdir)/info: $(addsuffix .info,$(gnustuff.info_docs))
+$(outdir)/dvi : $(addsuffix .dvi ,$(gnustuff.info_docs))
+$(outdir)/html: $(addsuffix .html,$(gnustuff.info_docs))
+$(outdir)/pdf : $(addsuffix .pdf ,$(gnustuff.info_docs))
+$(outdir)/ps : $(addsuffix .ps ,$(gnustuff.info_docs))
#dist:dist
check: TODO
installcheck: TODO
diff --git a/build-aux/Makefile.once.head/11-gnu.mk b/build-aux/Makefile.once.head/11-gnu.mk
deleted file mode 100644
index b704a57..0000000
--- a/build-aux/Makefile.once.head/11-gnu.mk
+++ /dev/null
@@ -1,143 +0,0 @@
-# Copyright (C) 2016 Luke Shumaker
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-# 7.2.2: Utilities in Makefiles
-# -----------------------------
-
-# It's ok to hard-code these commands in rules, but who wants to
-# memorize the list of what's ok?
-AWK ?= awk
-CAT ?= cat
-CMP ?= cmp
-CP ?= cp
-DIFF ?= diff
-ECHO ?= echo
-EGREP ?= egrep
-EXPR ?= expr
-FALSE ?= false
-GREP ?= grep
-INSTALL_INFO ?= install-info
-LN ?= ln
-LS ?= ls
-MKDIR ?= mkdir
-MV ?= mv
-PRINTF ?= printf
-PWD ?= pwd
-RM ?= rm
-RMDIR ?= rmdir
-SED ?= sed
-SLEEP ?= sleep
-SORT ?= sort
-TAR ?= tar
-TEST ?= test
-TOUCH ?= touch
-TR ?= tr
-TRUE ?= true
-
-# 7.2.3 Variables for Specifying Commands
-# ---------------------------------------
-
-INSTALL ?= install
-INSTALL_PROGRAM ?= $(INSTALL)
-INSTALL_DATA ?= ${INSTALL} -m 644
-
-# These aren't specified in the standards, but we use them
-STRIP ?= strip
-MAKEINFO ?= makeinfo
-TEXI2DVI ?= texi2dvi
-TEXI2HTML ?= makeinfo --html
-TEXI2PDF ?= texi2pdf
-TEXI2PS ?= makeinfo --ps
-MKDIR_P ?= mkdir -p
-
-# 7.2.5 Variables for Installation Directories
-# --------------------------------------------
-
-# Root for the installation
-prefix ?= /usr/local
-exec_prefix ?= $(prefix)
-# Executable programs
-bindir ?= $(exec_prefix)/bin
-sbindir ?= $(exec_prefix)/sbin
-libexecdir ?= $(exec_prefix)/libexec
-gnu.program_dirs += $(bindir) $(sbindir) $(libexecdir)
-# Data files
-datarootdir ?= $(prefix)/share
-datadir ?= $(datarootdir)
-sysconfdir ?= $(prefix)/etc
-sharedstatedir ?= $(prefix)/com
-localstatedir ?= $(prefix)/var
-runstatedir ?= $(localstatedir)/run
-gnu.data_dirs += $(datarootdir) $(datadir) $(sysconfdir) $(sharedstatedir) $(localstatedir) $(runstatedir)
-# Specific types of files
-includedir ?= $(prefix)/include
-oldincludedir ?= /usr/include
-docdir ?= $(datarootdir)/doc/$(PACKAGE)
-infodir ?= $(datarootdir)/info
-htmldir ?= $(docdir)
-dvidir ?= $(docdir)
-pdfdir ?= $(docdir)
-psdir ?= $(docdir)
-libdir ?= $(exec_prefix)/lib
-lispdir ?= $(datarootdir)/emacs/site-lisp
-localedir ?= $(datarootdir)/locale
-gnu.data_dirs += $(includedir) $(oldincludedir) $(docdir) $(infodir) $(htmldir) $(dvidir) $(pdfdir) $(psdir) $(libdir) $(lispdir) $(localedir)
-
-mandir ?= $(datarootdir)/man
-man1dir ?= $(mandir)/man1
-man2dir ?= $(mandir)/man2
-man3dir ?= $(mandir)/man3
-man4dir ?= $(mandir)/man4
-man5dir ?= $(mandir)/man5
-man6dir ?= $(mandir)/man6
-man7dir ?= $(mandir)/man7
-man8dir ?= $(mandir)/man8
-gnu.data_dirs += $(mandir) $(man1dir) $(man2dir) $(man3dir) $(man4dir) $(man5dir) $(man6dir) $(man7dir) $(man8dir)
-
-manext ?= .1
-man1ext ?= .1
-man2ext ?= .2
-man3ext ?= .3
-man4ext ?= .4
-man5ext ?= .5
-man6ext ?= .6
-man7ext ?= .7
-man8ext ?= .8
-
-# srcdir is handled for us by the core
-
-# Other initialization
-gnu.info_docs ?=
-std.dirlocal += gnu.info_docs
-
-define _gnu.install_program
-$$($1)/%: $$(outdir)/$$($1)
- $$(NORMAL_INSTALL)
- $$(INSTALL_PROGRAM)
-$$($1)/%: $$(srcdir)/$$($1)
- $$(NORMAL_INSTALL)
- $$(INSTALL_PROGRAM)
-endef
-
-define _gnu.install_data
-$$($1)/%: $$(outdir)/$$($1)
- $$(NORMAL_INSTALL)
- $$(INSTALL_DATA)
-$$($1)/%: $$(srcdir)/$$($1)
- $$(NORMAL_INSTALL)
- $$(INSTALL_DATA)
-endef
-
-gnu.dirs += $(gnu.program_dirs) $(gnu.data_dirs)
diff --git a/build-aux/Makefile.once.head/11-gnustuff.mk b/build-aux/Makefile.once.head/11-gnustuff.mk
new file mode 100644
index 0000000..d91832d
--- /dev/null
+++ b/build-aux/Makefile.once.head/11-gnustuff.mk
@@ -0,0 +1,30 @@
+# Copyright (C) 2016 Luke Shumaker
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+STRIP ?= strip
+TEXI2HTML ?= makeinfo --html
+TEXI2PDF ?= texi2pdf
+TEXI2PS ?= texi2dvi --ps
+MKDIR_P ?= mkdir -p
+
+gnustuff.program_dirs += $(bindir) $(sbindir) $(libexecdir)
+gnustuff.data_dirs += $(datarootdir) $(datadir) $(sysconfdir) $(sharedstatedir) $(localstatedir) $(runstatedir)
+gnustuff.data_dirs += $(includedir) $(oldincludedir) $(docdir) $(infodir) $(htmldir) $(dvidir) $(pdfdir) $(psdir) $(libdir) $(lispdir) $(localedir)
+gnustuff.data_dirs += $(mandir) $(man1dir) $(man2dir) $(man3dir) $(man4dir) $(man5dir) $(man6dir) $(man7dir) $(man8dir)
+
+gnustuff.info_docs ?=
+std.dirlocal += gnustuff.info_docs
+
+gnustuff.dirs += $(gnu.program_dirs) $(gnu.data_dirs)
diff --git a/build-aux/Makefile.once.tail/11-gnu.mk b/build-aux/Makefile.once.tail/11-gnustuff.mk
index df5f192..df5f192 100644
--- a/build-aux/Makefile.once.tail/11-gnu.mk
+++ b/build-aux/Makefile.once.tail/11-gnustuff.mk