##// END OF EJS Templates
Platform-specific makefile
naryl -
r59:09309f46 default
parent child Browse files
Show More
@@ -1,7 +1,18 b''
1 1
2 BIN = txt2web
3 DIST = $(BIN).tar.xz
4 SCRIPT = $(BIN).ros
2 PKG = txt2web
3 SCRIPT = $(PKG).ros
4
5 ifeq ($(OS),Windows_NT)
6 BIN = $(PKG).exe
7 DIST = $(PKG).zip
8 ARCMD = "zip"
9 ARARGS = "-r"
10 else
11 BIN = $(PKG)
12 DIST = $(PKG).tar.xz
13 ARCMD = "tar"
14 ARARGS = "cfvJ"
15 endif
5 16
6 17 BLACK := $(shell tput setaf 0)
7 18 RED := $(shell tput setaf 1)
@@ -26,7 +37,7 b' graphs: diagrams.png'
26 37 $(BIN): bin/$(BIN)
27 38 ln -f $<
28 39
29 bin/$(BIN): *.asd src/*.lisp src/*.ps strings/*.sexp bin/$(BIN).ros
40 bin/$(BIN): *.asd src/*.lisp src/*.ps strings/*.sexp bin/$(PKG).ros
30 41 @echo
31 42 @echo "* ${GREEN}Building ${YELLOW}${BIN} ${GREEN}binary${RESET}..."
32 43 ros build bin/$(SCRIPT)
@@ -37,7 +48,7 b' bin/$(BIN): *.asd src/*.lisp src/*.ps st'
37 48 $(DIST): $(BIN) extras/*
38 49 @echo
39 50 @echo "* ${GREEN}Packaging${RESET}..."
40 tar cfvJ $@ $< extras
51 $(ARCMD) $(ARARGS) $@ $< extras
41 52
42 53 clean:
43 54 rm -f $(BIN) bin/$(BIN) $(DIST)
General Comments 0
You need to be logged in to leave comments. Login now