-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
144 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 *~ |
Oops, something went wrong.