markdown/Makefile

38 lines
495 B
Makefile
Raw Normal View History

all:
@echo 'targets: nuke parser clean'
2010-11-21 22:04:39 +00:00
cmd: package
cd cmd/markdown && go build -v
2010-11-21 22:04:39 +00:00
package: parser.leg.go
go install -v
2010-11-21 22:04:39 +00:00
clean:
go clean . ./...
rm -rf ,,prevmd ,,pmd
parser: parser.leg.go
2010-11-21 22:04:39 +00:00
nuke:
rm -f parser.leg.go
2010-11-21 22:04:39 +00:00
2010-12-01 18:40:56 +00:00
# LEG parser rules
2010-11-21 22:04:39 +00:00
#
ifeq ($(MAKECMDGOALS),parser)
include $(shell go list -f '{{.Dir}}' github.com/knieriem/peg)/Make.inc
2010-11-21 22:04:39 +00:00
%.leg.go: %.leg $(LEG)
$(LEG) -verbose -switch -O all $< > $@
2010-11-21 22:04:39 +00:00
endif
2010-12-03 22:27:21 +00:00
2010-11-21 22:04:39 +00:00
include misc/devel.mk
.PHONY: \
all\
2010-11-21 22:04:39 +00:00
cmd\
nuke\
package\
parser\