Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
ganaware committed Oct 20, 2002
1 parent b74fce2 commit 66c0266
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 159 deletions.
30 changes: 9 additions & 21 deletions Makefile.gcc
Original file line number Diff line number Diff line change
@@ -1,34 +1,22 @@
# Makefile for pcf2bdf (gcc) -*- makefile -*-

CC = gcc
#CFLAGS = -Wall -g
CFLAGS = -Wall -O2
CXX = $(CC)
CXXFLAGS = $(CFLAGS)

LATEX = jlatex
DVIPS = dvips
TAR = tar
GREP = grep
TAIL = tail
SED = sed
FIXEUCFONT = fixeucfont
PREFIX = /usr/local
BINPATH = $(PREFIX)/bin
MANPATH = $(PREFIX)/man/man1

all: pcf2bdf

pcf2bdf: pcf2bdf.o

clean:
-$(RM) pcf2bdf pcf2bdf.exe pcf2bdf.o pcf2bdf.obj pcf2bdf.cxx *~ \
pcf.aux pcf.dvi pcf.log pcf.toc

pcf.dvi: pcf.tex
$(LATEX) pcf.tex
$(LATEX) pcf.tex
pcf.ps: pcf.dvi
$(DVIPS) -f -P type1 pcf.dvi | $(FIXEUCFONT) > pcf.ps

DISTRIB = Makefile.* *.obj *.eps pcf.pdf pcf.tex pcf.txt pcf2bdf.cc
-$(RM) pcf2bdf pcf2bdf.exe pcf2bdf.o *~

distrib: pcf.ps
$(TAR) cvzf pcf2bdf-`grep Version pcf.tex | tail -1 | sed 's/^Version \([^ ][^ ]*\) .*$$/\1/'`.tgz $(DISTRIB)
install: all
-@if [ ! -d $(BINPATH) ]; then mkdir -p $(BINPATH); fi
install -m 755 pcf2bdf $(BINPATH)
-@if [ ! -d $(MANPATH) ]; then mkdir -p $(MANPATH); fi
install -m 644 pcf2bdf.man $(MANPATH)
43 changes: 6 additions & 37 deletions Makefile.vc
Original file line number Diff line number Diff line change
@@ -1,44 +1,13 @@
# Makefile for pcf2bdf (Visual C++ 5.0) -*- makefile -*-

# in order to make, run: nmake -f Makefile.vc
# for no debugging info: nmake -f Makefile.vc nodebug=1

APPVER = 4.0
TARGETOS = BOTH
!include <win32.mak>

LATEX = platex
DVIPS = dvipsj
TAR = tar
CXX = cl
CXXFLAGS = /O2
RM = del
GREP = grep
TAIL = tail
SED = sed
NKF = nkf

.cxx.obj:
$(cc) $(cdebug) $(cflags) $(cvars) /Tp$*.cxx

all: pcf2bdf.exe
all: pcf2bdf

pcf2bdf.exe: pcf2bdf.obj
$(link) $(ldebug) $(conlflags) $(conlibs) $** -out:$@
pcf2bdf.cxx: pcf2bdf.cc
$(NKF) -s < $** > $@
pcf2bdf: pcf2bdf.cc
$(CXX) $(CXXFLAGS) /Tppcf2bdf.cc

clean:
-$(RM) pcf2bdf pcf2bdf.exe pcf2bdf.o pcf2bdf.obj pcf2bdf.cxx *~ \
pcf.aux pcf.dvi pcf.log pcf.toc

pcf.dvi: pcf.tex
$(LATEX) pcf.tex
$(LATEX) pcf.tex
pcf.ps: pcf.dvi
$(DVIPS) pcf.dvi > pcf.ps

DISTRIB = Makefile.* *.obj *.eps pcf.ps pcf.tex pcf.txt pcf2bdf.cc

distrib: pcf.ps
$(GREP) Version pcf.tex | $(TAIL) -1 | $(SED) "s/^Version \([^ ][^ ]*\) .*$$/$(TAR) cvzf pcf2bdf-\1.tgz $(DISTRIB)/" > distrib.bat
distrib.bat
$(RM) distrib.bat
-$(RM) pcf2bdf pcf2bdf.exe pcf2bdf.obj *~
Loading

0 comments on commit 66c0266

Please sign in to comment.