modernc.org/knuth@v0.0.4/vptovf/Makefile (about) 1 # Copyright 2023 The Knuth Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style 3 # license that can be found in the LICENSE file. 4 5 .PHONY: all clean edit editor generate fpc 6 7 all: 8 9 clean: 10 rm -f cpu.test mem.test *.out *.p *.o vptovf 11 go clean 12 13 edit: 14 @touch log 15 @if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile *.go & fi 16 17 editor: 18 gofmt -l -s -w . 19 go test 2>&1 | tee log-editor 20 21 generate: 22 go run generate.go 23 go build -v ./... 24 weave vptovf.web vptovf.ch 25 rm -f vptovf.pas vptovf.tex CONTENTS.tex vptovf.log 26 vptovf testdata/ae/vf/aeb10.vpl testdata/ae/vf/aeb10.vf testdata/ae/vf/aeb10.tfm 27 28 fpc: generate 29 tangle vptovf.web fpc.ch 30 fpc -MISO vptovf.p 31 ./vptovf testdata/ae/vf/aeb10.vpl 2>&1 | tee log-fpc 32 go test -v 2>&1 | tee log-editor 33