https://github.com/jrincayc/ucblogo-code
Revision fad4edae238e68074be88ed40d315872abb26890 authored by Joshua J. Cogliati on 26 December 2019, 19:22:22 UTC, committed by Joshua J. Cogliati on 26 December 2019, 19:22:22 UTC
1 parent 1f5ab9f
Tip revision: fad4edae238e68074be88ed40d315872abb26890 authored by Joshua J. Cogliati on 26 December 2019, 19:22:22 UTC
Adding ucblogo.png from version 6.0
Adding ucblogo.png from version 6.0
Tip revision: fad4eda
makefile.in
CC = @CC@
CFLAGS = @CFLAGS@ @CPPFLAGS@ @X_CFLAGS@ -O0 -DUSE_OLD_TTY
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @X_PRE_LIBS@ @X_LIBS@ @LIBS@ @X_EXTRA_LIBS@
prefix = @prefix@
BINDIR = $(prefix)/bin
LIBLOC = $(prefix)/lib/logo
LINKER = @LINKER@
# LIBLOC = `pwd`
OBJS = coms.o error.o eval.o files.o graphics.o init.o intern.o \
libloc.o lists.o logodata.o main.o math.o mem.o paren.o parse.o \
print.o wrksp.o nographics.o git.o obj.o @WXOFILES@ @TERMOFILE@ @GRAPHICSOFILE@
SRCS = 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 nographics.c obj.c @WXSRCFILES@ @TERMFILE@ @GRAPHICSFILE@
HDRS = globals.h logo.h xgraphics.h
logo: $(OBJS)
$(LINKER) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o logo
everything: logo logolib/Messages helpfiles helpfiles/HELPCONTENTS
#logo-mode
mem.o: mem.c
$(CC) $(CFLAGS) -O0 -c mem.c
git.c: $(SRCS)
echo 'char* GIT = "('`git describe||echo NA|tr -d '\r'`')";' > git.c
tags: $(SRCS)
ctags --format=1 -N $(SRCS) $(HDRS)
# ctags -t $(SRCS) $(HDRS)
libloc.c:
echo 'char *libloc="'$(LIBLOC)'/logolib";' > libloc.c
echo 'char *helploc="'$(LIBLOC)'/helpfiles";' >> libloc.c
echo 'char *cslsloc="'$(LIBLOC)'/csls";' >> libloc.c
echo 'char *temploc="/tmp";' >> libloc.c
echo 'char *separator="/";' >> libloc.c
logolib/Messages: makelib Messages
chmod +x makelib
./makelib
cp -f Messages logolib
helpfiles:
mkdir helpfiles
helpfiles/HELPCONTENTS: makehelp usermanual
./makehelp
sort helptemp | pr -5 -t -l999 -w80 >> helpfiles/HELPCONTENTS
rm helptemp
makehelp: makehelp.c
$(CC) -o makehelp makehelp.c
clean:
rm -f *.o libloc.c
# cd emacs; $(MAKE) clean
ship:
rm -f config.h config.cache config.log config.status
rm -f makefile makehelp logo *.o libloc.c
# cd emacs; $(MAKE) ship
cd docs; $(MAKE) ship
install: everything
for d in $(BINDIR) $(LIBLOC) $(LIBLOC)/logolib $(LIBLOC)/helpfiles $(LIBLOC)/csls; do [ -d $$d ] || mkdir -p $$d || exit 1; done
cp logo $(BINDIR)/.
cp -f logolib/* $(LIBLOC)/logolib/.
cp -f helpfiles/* $(LIBLOC)/helpfiles/.
cp -f csls/* $(LIBLOC)/csls/.
# (cd emacs; prefix=$(prefix) LIBLOC=$(LIBLOC) BINDIR=$(BINDIR) $(MAKE) install)
(cd docs; prefix=$(prefix) LIBLOC=$(LIBLOC) BINDIR=$(BINDIR) $(MAKE) install)
# prefix=$(prefix); LIBLOC=$(LIBLOC); BINDIR=$(BINDIR); export prefix LIBLOC BINDIR; cd emacs; $(MAKE) install
logo-mode:
# (cd emacs; prefix=$(prefix) LIBLOC=$(LIBLOC) BINDIR=$(BINDIR) $(MAKE))
# @prefix=$(prefix); LIBLOC=$(LIBLOC); BINDIR=$(BINDIR); export prefix LIBLOC BINDIR; cd emacs; $(MAKE)
make-docs:
(cd docs; prefix=$(prefix) LIBLOC=$(LIBLOC) $(MAKE) all)
mac: everything
mkdir -p UCBLogo.app
mkdir -p UCBLogo.app/Contents
cp Info.plist UCBLogo.app/Contents/
cp PkgInfo UCBLogo.app/Contents/
cp pbdevelopment.plist UCBLogo.app/Contents/
mkdir -p UCBLogo.app/Contents/Resources/csls
cp csls/[a-z]* UCBLogo.app/Contents/Resources/csls
cp -r helpfiles UCBLogo.app/Contents/Resources/
cp -r logolib UCBLogo.app/Contents/Resources/
cp logo.icns UCBLogo.app/Contents/Resources/
mkdir -p UCBLogo.app/Contents/MacOS/
cp logo UCBLogo.app/Contents/MacOS/UCBLogo
ucblogo.dmg : mac
rm -f ucblogo.dmg ucblogo_base.dmg
hdiutil create -size 15m -fs HFS+ -volname "UCBLogo" ucblogo_base.dmg
hdiutil attach ucblogo_base.dmg
cp -a UCBLogo.app /Volumes/UCBLogo/
cp docs/usermanual.pdf /Volumes/UCBLogo/UCBLogoUserManual.pdf
hdiutil detach /Volumes/UCBLogo/
hdiutil convert ucblogo_base.dmg -format UDZO -o ucblogo.dmg
Computing file changes ...