https://github.com/jrincayc/ucblogo-code
Revision a7d2a824aff2bd141e627200489d21b46d04fe0a authored by Barak A. Pearlmutter on 22 July 2020, 11:35:34 UTC, committed by Barak A. Pearlmutter on 22 July 2020, 19:36:15 UTC
1 parent 9d825e1
Tip revision: a7d2a824aff2bd141e627200489d21b46d04fe0a authored by Barak A. Pearlmutter on 22 July 2020, 11:35:34 UTC
update configure.ac
update configure.ac
Tip revision: a7d2a82
Makefile.am
SUBDIRS = logolib csls helpfiles
if DOCS
SUBDIRS += docs
endif
bin_PROGRAMS = ucblogo
logolibdir=$(pkgdatadir)/logolib
helpfilesdir=$(pkgdatadir)/helpfiles
cslsdir=$(pkgdatadir)/csls
tempdir=/tmp
ucblogo_CPPFLAGS = $(AM_CPPFLAGS) \
-DLIBLOC='"$(logolibdir)"' \
-DHELPLOC='"$(helpfilesdir)"' \
-DCSLSLOC='"$(cslsdir)"' \
-DTEMPLOC='"$(tempdir)"'
ucblogo_SOURCES = coms.c error.c eval.c files.c graphics.c init.c \
intern.c libloc.c lists.c logodata.c main.c math.c mem.c paren.c \
parse.c print.c wrksp.c
if WX
# need C++ linker
ucblogo_SOURCES += wxMain.cpp wxTerminal.cpp wxTurtleGraphics.cpp
ucblogo_SOURCES += TextEditor.cpp
ucblogo_SOURCES += wxterm.c
else
# do not need C++ linker, no good way to avoid it though
ucblogo_SOURCES += term.c
if X11
ucblogo_SOURCES += xgraphics.c
else
ucblogo_SOURCES += nographics.c
endif
endif
# makehelp_SOURCES = makehelp.c
helpfiles/HELPCONTENTS helpfiles/ALL_NAMES: regenerate-help-index
# Redirection with this phony target avoids the stanza being run
# twice, thus avoiding unecessary work and a race condition.
.PHONY: regenerate-help-index
regenerate-help-index: makehelp usermanual
@echo "Regenerates entire contents of helpfiles/, including index, from usermanual."
./makehelp
@echo "Grave accent as filename is impossible with automake so work around it."
mv --verbose helpfiles/'`' helpfiles/RENAME-GRAVE-ACCENT
LC_ALL=C sort helptemp | pr -5 -t -l999 -w80 >> helpfiles/HELPCONTENTS
-rm helptemp
all: regenerate-help-index
Computing file changes ...