tweak
This commit is contained in:
parent
42f3c3f7be
commit
05109382d6
2 changed files with 16 additions and 3 deletions
17
Makefile
17
Makefile
|
@ -119,7 +119,8 @@ clean:
|
||||||
$(UPROGS)
|
$(UPROGS)
|
||||||
|
|
||||||
# make a printout
|
# make a printout
|
||||||
PRINT = runoff.list $(shell grep -v '^\#' runoff.list)
|
FILES = $(shell grep -v '^\#' runoff.list)
|
||||||
|
PRINT = runoff.list $(FILES)
|
||||||
|
|
||||||
xv6.pdf: $(PRINT)
|
xv6.pdf: $(PRINT)
|
||||||
./runoff
|
./runoff
|
||||||
|
@ -140,17 +141,27 @@ qemu: fs.img xv6.img
|
||||||
# after running make dist, probably want to
|
# after running make dist, probably want to
|
||||||
# rename it to rev0 or rev1 or so on and then
|
# rename it to rev0 or rev1 or so on and then
|
||||||
# check in that version.
|
# check in that version.
|
||||||
|
|
||||||
|
EXTRA=\
|
||||||
|
mkfs.c ulib.c user.h cat.c echo.c forktest.c grep.c\
|
||||||
|
kill.c ln.c ls.c mkdir.c rm.c usertests.c wc.c zombie.c\
|
||||||
|
printf.c umalloc.c \
|
||||||
|
README dot-bochsrc *.pl toc.* runoff runoff1 runoff.list\
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
mkdir dist
|
mkdir dist
|
||||||
for i in *.c *.h *.S; \
|
for i in $(FILES); \
|
||||||
do \
|
do \
|
||||||
grep -v PAGEBREAK $$i >dist/$$i; \
|
grep -v PAGEBREAK $$i >dist/$$i; \
|
||||||
done
|
done
|
||||||
sed '/CUT HERE/,$$d' Makefile >dist/Makefile
|
sed '/CUT HERE/,$$d' Makefile >dist/Makefile
|
||||||
cp README dot-bochsrc *.pl toc.* runoff runoff1 runoff.list dist
|
echo >dist/runoff.spec
|
||||||
|
cp $(EXTRA) dist
|
||||||
|
|
||||||
dist-test:
|
dist-test:
|
||||||
|
rm -rf dist
|
||||||
|
make dist
|
||||||
rm -rf dist-test
|
rm -rf dist-test
|
||||||
mkdir dist-test
|
mkdir dist-test
|
||||||
cp dist/* dist-test
|
cp dist/* dist-test
|
||||||
|
|
2
runoff
2
runoff
|
@ -202,3 +202,5 @@ else
|
||||||
cp all.ps allf.ps
|
cp all.ps allf.ps
|
||||||
fi
|
fi
|
||||||
ps2pdf allf.ps ../xv6.pdf
|
ps2pdf allf.ps ../xv6.pdf
|
||||||
|
cd ..
|
||||||
|
pdftops xv6.pdf xv6.ps
|
||||||
|
|
Loading…
Reference in a new issue