History

Add info file creation into tcc build process

Add info file creation in tcc Makefile

Thomas Preud'homme committed 16 years ago

Commit 3f829d11 parent 36f74e42 files · +17 −3Browse files

Unified · Split

2 files
  1. Makefile +8 −3
  2. configure +9 −0
Makefile+8−3
@@ -131,7 +131,7 @@ LIBTCCLIBS+=tcc1.def · 130 unmodified lines
131endif131endif
132endif132endif
133 133
134all: $(PROGS) $(LIBTCC1) $(BCHECK_O) $(LIBTCCLIBS) tcc-doc.html tcc.1 libtcc_test$(EXESUF)134all: $(PROGS) $(LIBTCC1) $(BCHECK_O) $(LIBTCCLIBS) tcc-doc.html tcc.1 tcc-doc.info libtcc_test$(EXESUF)
135 135
136# Host Tiny C Compiler136# Host Tiny C Compiler
137tcc$(EXESUF): tcc.o $(LIBTCCB)137tcc$(EXESUF): tcc.o $(LIBTCCB)
@@ -245,11 +245,13 @@ TCC_INCLUDES = stdarg.h stddef.h stdbool.h float.h varargs.h tcclib.h · 107 unmodified lines
245INSTALL=install245INSTALL=install
246 246
247ifndef CONFIG_WIN32247ifndef CONFIG_WIN32
248install: $(PROGS) $(LIBTCC1) $(BCHECK_O) $(LIBTCCLIBS) tcc.1 tcc-doc.html248install: $(PROGS) $(LIBTCC1) $(BCHECK_O) $(LIBTCCLIBS) tcc.1 tcc-doc.info tcc-doc.html
249 mkdir -p "$(bindir)"249 mkdir -p "$(bindir)"
250 $(INSTALL) -s -m755 $(PROGS) "$(bindir)"250 $(INSTALL) -s -m755 $(PROGS) "$(bindir)"
251 mkdir -p "$(mandir)/man1"251 mkdir -p "$(mandir)/man1"
252 $(INSTALL) tcc.1 "$(mandir)/man1"252 $(INSTALL) tcc.1 "$(mandir)/man1"
253 mkdir -p $(infodir)
254 $(INSTALL) tcc-doc.info "$(infodir)"
253 mkdir -p "$(tccdir)"255 mkdir -p "$(tccdir)"
254 mkdir -p "$(tccdir)/include"256 mkdir -p "$(tccdir)/include"
255ifneq ($(LIBTCC1),)257ifneq ($(LIBTCC1),)
@@ -315,6 +317,9 @@ tcc.1: tcc-doc.texi · 59 unmodified lines
315 -./texi2pod.pl $< tcc.pod317 -./texi2pod.pl $< tcc.pod
316 -pod2man --section=1 --center=" " --release=" " tcc.pod > $@318 -pod2man --section=1 --center=" " --release=" " tcc.pod > $@
317 319
320tcc-doc.info: tcc-doc.texi
321 makeinfo tcc-doc.texi
322
318# tar release (use 'make -k tar' on a checkouted tree)323# tar release (use 'make -k tar' on a checkouted tree)
319TCC-VERSION=tcc-$(shell cat VERSION)324TCC-VERSION=tcc-$(shell cat VERSION)
320tar:325tar:
@@ -332,7 +337,7 @@ clean: · 11 unmodified lines
332 $(MAKE) -C tests $@337 $(MAKE) -C tests $@
333 338
334distclean: clean339distclean: clean
335 rm -vf config.h config.mak config.texi tcc.1 tcc-doc.html340 rm -vf config.h config.mak config.texi tcc.1 tcc-doc.info tcc-doc.html
336 341
337config.mak:342config.mak:
338 @echo Running configure ...343 @echo Running configure ...
configure+9−0
@@ -29,6 +29,7 @@ libdir="" · 28 unmodified lines
29tccdir=""29tccdir=""
30includedir=""30includedir=""
31mandir=""31mandir=""
32infodir=""
32sysroot=""33sysroot=""
33cross_prefix=""34cross_prefix=""
34cc="gcc"35cc="gcc"
@@ -108,6 +109,8 @@ for opt do · 73 unmodified lines
108 ;;109 ;;
109 --mandir=*) mandir=`echo $opt | cut -d '=' -f 2`110 --mandir=*) mandir=`echo $opt | cut -d '=' -f 2`
110 ;;111 ;;
112 --infodir=*) infodir=`echo $opt | cut -d '=' -f 2`
113 ;;
111 --sysroot=*) sysroot=`echo $opt | cut -d '=' -f 2`114 --sysroot=*) sysroot=`echo $opt | cut -d '=' -f 2`
112 ;;115 ;;
113 --source-path=*) source_path=`echo $opt | cut -d '=' -f 2`116 --source-path=*) source_path=`echo $opt | cut -d '=' -f 2`
@@ -227,6 +230,7 @@ echo " --bindir=DIR user executables in DIR [EPREFIX/bin]" · 113 unmodified lines
227echo " --libdir=DIR object code libraries in DIR [EPREFIX/lib]"230echo " --libdir=DIR object code libraries in DIR [EPREFIX/lib]"
228echo " --includedir=DIR C header files in DIR [PREFIX/include]"231echo " --includedir=DIR C header files in DIR [PREFIX/include]"
229echo " --mandir=DIR man documentation in DIR [PREFIX/man]"232echo " --mandir=DIR man documentation in DIR [PREFIX/man]"
233echo " --infodir=DIR info documentation in DIR [PREFIX/info]"
230echo " --enable-cross build cross compilers"234echo " --enable-cross build cross compilers"
231echo ""235echo ""
232echo "Advanced options (experts only):"236echo "Advanced options (experts only):"
@@ -275,6 +279,9 @@ fi · 42 unmodified lines
275if test x"$mandir" = x""; then279if test x"$mandir" = x""; then
276mandir="${prefix}/man"280mandir="${prefix}/man"
277fi281fi
282if test x"$infodir" = x""; then
283infodir="${prefix}/info"
284fi
278if test x"$includedir" = x""; then285if test x"$includedir" = x""; then
279includedir="${prefix}/include"286includedir="${prefix}/include"
280fi287fi
@@ -284,6 +291,7 @@ echo "TinyCC directory $tccdir" · 3 unmodified lines
284echo "Library directory $libdir"291echo "Library directory $libdir"
285echo "Include directory $includedir"292echo "Include directory $includedir"
286echo "Manual directory $mandir"293echo "Manual directory $mandir"
294echo "Info directory $infodir"
287echo "Doc directory $docdir"295echo "Doc directory $docdir"
288echo "Target root prefix $sysroot"296echo "Target root prefix $sysroot"
289echo "Source path $source_path"297echo "Source path $source_path"
@@ -306,6 +314,7 @@ echo "libdir=\$(DESTDIR)$libdir" >> config.mak · 16 unmodified lines
306echo "ln_libdir=$libdir" >> config.mak314echo "ln_libdir=$libdir" >> config.mak
307echo "includedir=\$(DESTDIR)$includedir" >> config.mak315echo "includedir=\$(DESTDIR)$includedir" >> config.mak
308echo "mandir=\$(DESTDIR)$mandir" >> config.mak316echo "mandir=\$(DESTDIR)$mandir" >> config.mak
317echo "infodir=$infodir" >> config.mak
309echo "docdir=\$(DESTDIR)$docdir" >> config.mak318echo "docdir=\$(DESTDIR)$docdir" >> config.mak
310 319
311echo "#define CONFIG_SYSROOT \"$sysroot\"" >> $TMPH320echo "#define CONFIG_SYSROOT \"$sysroot\"" >> $TMPH

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t