Add Autotools system in parallel with Makefile.

* Makefile.am:
* version.texi:
* configure.ac: New files.
* c.texi: Include version.texi.
* Makefile: Add copyright and license notices,
gather common dependencies in $(SOURCES), use $< and $@ in rules.
* AUTHORS: Update.
This commit is contained in:
Ineiev 2023-09-25 17:09:07 +00:00
parent cba6e528d6
commit b2d26171aa
7 changed files with 58 additions and 20 deletions

View File

@ -15,4 +15,9 @@ Nelson Beebe (assigned to the FSF)
Original authors. Original authors.
Ineiev Ineiev
Add AUTHORS, THANKS, NEWS, README, ChangeLog. Add AUTHORS, THANKS, NEWS, README, ChangeLog, Makefile.am,
configure.ac, version.texi.
Tiny changes in c.texi.
Cleanup in Makefile.

View File

@ -1,5 +1,16 @@
GNU C Intro and Reference - ChangeLog GNU C Intro and Reference - ChangeLog
2023-09-25 Ineiev <ineiev@gnu.org>
Add Autotools system in parallel with Makefile.
* Makefile.am:
* version.texi:
* configure.ac: New files.
* c.texi: Include version.texi.
* Makefile: Add copyright and license notices,
gather common dependencies in $(SOURCES), use $< and $@ in rules.
----- -----

View File

@ -1,29 +1,35 @@
c-manual.tgz: c.texi cpp.texi fp.texi fdl.texi # Simple Makefile to build the manual from Git checkout without
mkdir c-manual # the need to bootstrap the build system.
ln Makefile c.texi cpp.texi fp.texi fdl.texi c-manual #
tar czf c-manual.tgz c-manual # Copyright (C) 2023 Richard Stallman
rm -rf c-manual #
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
c.info: c.texi cpp.texi fp.texi fdl.texi SOURCES = c.texi cpp.texi fp.texi gpl.texi fdl.texi version.texi
c.info: $(SOURCES)
makeinfo c.texi makeinfo c.texi
c.pdf: c.dvi c.pdf: c.dvi
dvipdf c.dvi dvipdf $<
c.dvi: c.texi cpp.texi fp.texi fdl.texi c.dvi: $(SOURCES)
texi2dvi c.texi texi2dvi $<
c.doc: c.texi cpp.texi fp.texi fdl.texi c.doc: $(SOURCES)
makeinfo --docbook c.texi -o $@ makeinfo --docbook $< -o $@
c.html: c.texi cpp.texi fp.texi fdl.texi c.html: $(SOURCES)
makeinfo --html --no-split c.texi -o $@ makeinfo --html --no-split $< -o $@
c.html.d: c.texi cpp.texi fp.texi fdl.texi c.html.d: $(SOURCES)
makeinfo --html c.texi -o $@ makeinfo --html $< -o $@
c.txt: c.texi cpp.texi fp.texi fdl.texi c.txt: $(SOURCES)
makeinfo --plaintext c.texi > $@ makeinfo --plaintext $< > $@
clean: clean:
rm -f c-manual.tgz c.dvi c.pdf c.info c.info-* c.doc c.txt rm -f c.dvi c.pdf c.info c.info-* c.doc c.txt c.html
rm -rf c.html rm -rf c.html.d
rm -f c.aux c.cp c.fn c.ky c.log c.pg c.tmp c.toc c.tp c.vr rm -f c.aux c.cp c.fn c.ky c.log c.pg c.tmp c.toc c.tp c.vr
rm -f c.cps c.fns rm -f c.cps c.fns

3
Makefile.am Normal file
View File

@ -0,0 +1,3 @@
info_TEXINFOS = c.texi
c_TEXINFOS = cpp.texi fp.texi fdl.texi gpl.texi
dist_doc_DATA = c.pdf

1
c.texi
View File

@ -9,6 +9,7 @@
@c ??? alloca @c ??? alloca
@setfilename ./c.info @setfilename ./c.info
@include version.texi
@settitle GNU C Language Manual @settitle GNU C Language Manual
@documentencoding UTF-8 @documentencoding UTF-8

11
configure.ac Normal file
View File

@ -0,0 +1,11 @@
# Process this file with autoconf to produce a configure script:
# autoreconf -vi
# Public domain. Originally written by Ineiev, 2023.
AC_INIT([GNU C Intro And Reference], [0.0-rc4], [c-manual@gnu.org],
[c-intro-and-ref], [https://www.gnu.org/software/c-intro-and-ref/])
AC_PREREQ([2.65])
AC_CONFIG_SRCDIR([c.texi])
AM_INIT_AUTOMAKE([1.11])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT

1
version.texi Normal file
View File

@ -0,0 +1 @@
@set EDITION 0.0-rc4