X-Git-Url: http://nitlanguage.org diff --git a/contrib/nitrpg/Makefile b/contrib/nitrpg/Makefile index 40ebec2..0270ede 100644 --- a/contrib/nitrpg/Makefile +++ b/contrib/nitrpg/Makefile @@ -1,7 +1,5 @@ # This file is part of NIT ( http://www.nitlanguage.org ). # -# Copyright 2014-2015 Alexandre Terrasa -# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -14,15 +12,31 @@ # See the License for the specific language governing permissions and # limitations under the License. -NITC=../../bin/nitc +NITC ?= nitc +NITLS ?= nitls +NITUNIT ?= nitunit +NITDOC ?= nitdoc + +.PHONY: all +all: bin/listener bin/web + +bin/listener: $(shell $(NITLS) -M src/listener.nit) + mkdir -p bin/ + $(NITC) src/listener.nit -o bin/listener -all: listener web +bin/web: $(shell $(NITLS) -M src/web.nit) + mkdir -p bin/ + $(NITC) src/web.nit -o bin/web -listener: - $(NITC) src/listener.nit +.PHONY: check +check: + $(NITUNIT) . -web: - $(NITC) src/web.nit +.PHONY: doc +doc: + $(NITDOC) . -o doc/ +.PHONY: clean clean: - rm listener web + rm -rf bin/ + rm -rf doc/