install perl files as well

master
Michele Guerini Rocco 2019-05-15 18:56:59 +02:00
parent fb0c08bb12
commit 500d901afe
Signed by: rnhmjoj
GPG Key ID: 91BE884FBA4B591A
10 changed files with 21 additions and 15 deletions

View File

@ -2,9 +2,9 @@
2 MANIFEST
D books/
D books/tools/
3 bootstrap
4 bootstrap2
5 sortpages
3 bootstrap.pl
4 bootstrap2.pl
5 sortpages.pl
6 Makefile
7 heap.c
8 heap.h
@ -18,9 +18,9 @@ D books/tools/
16 unmunge.c
17 munge.c
18 yapp.doc
19 yapp
20 psgen
21 makemanifest
19 yapp.pl
20 psgen.pl
21 makemanifest.pl
D books/ps/
22 prolog.ps
23 charmap.ps

View File

@ -1,5 +1,5 @@
BOOKROOT = ..
TOOLSDIR = $(BOOKROOT)/tools
TOOLSDIR = $(BOOKROOT)/tools/bin
PSDIR = $(BOOKROOT)/ps
YAPP = $(TOOLSDIR)/yapp

View File

@ -2,9 +2,9 @@ V 1 8
T MANIFEST
D books/
D books/tools/
T books/tools/bootstrap
T books/tools/bootstrap2
T4 books/tools/sortpages
T books/tools/bootstrap.pl
T books/tools/bootstrap2.pl
T4 books/tools/sortpages.pl
T books/tools/Makefile
T books/tools/heap.c
T books/tools/heap.h
@ -18,9 +18,9 @@ T books/tools/subst.h
T books/tools/unmunge.c
T books/tools/munge.c
T books/tools/yapp.doc
T4 books/tools/yapp
T4 books/tools/psgen
T4 books/tools/makemanifest
T4 books/tools/yapp.pl
T4 books/tools/psgen.pl
T4 books/tools/makemanifest.pl
D books/ps/
T books/ps/prolog.ps
T books/ps/charmap.ps

View File

@ -3,6 +3,7 @@ OBJ = obj
DIRS = $(BIN) $(OBJ)
CFLAGS = -g -O -W -Wall
PERL = $(addprefix $(BIN)/, bootstrap bootstrap2 makemanifest psgen sortpages yapp)
BINS = $(addprefix $(BIN)/, unmunge munge repair)
UNMUNGE_OBJS = $(addprefix $(OBJ)/, util.o unmunge.o)
MUNGE_OBJS = $(addprefix $(OBJ)/, util.o munge.o)
@ -10,7 +11,10 @@ REPAIR_OBJS = $(addprefix $(OBJ)/, util.o heap.o mempool.o subst.o repair.o)
$(shell mkdir -p $(DIRS))
all: $(BINS)
all: $(BINS) $(PERL)
$(BIN)/%: %.pl
cp $< $@; chmod +x $@
$(BIN)/unmunge: $(UNMUNGE_OBJS)
$(CC) $(CFLAGS) -o $@ $(UNMUNGE_OBJS)

0
tools/bootstrap → tools/bootstrap.pl Executable file → Normal file
View File

0
tools/bootstrap2 → tools/bootstrap2.pl Executable file → Normal file
View File

0
tools/makemanifest → tools/makemanifest.pl Executable file → Normal file
View File

4
tools/psgen → tools/psgen.pl Executable file → Normal file
View File

@ -18,8 +18,10 @@
# $Id: psgen,v 1.18 1997/11/13 21:44:16 colin Exp $
#
use File::Basename;
$bookRoot = $ENV{"BOOKROOT"} || ".";
$toolsDir = "$bookRoot/tools";
$toolsDir = dirname(__FILE__);
$psDir = "$bookRoot/ps";
$editor = $ENV{"EDITOR"} || "vi";

0
tools/sortpages → tools/sortpages.pl Executable file → Normal file
View File

0
tools/yapp → tools/yapp.pl Executable file → Normal file
View File