##// 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
2 PKG = txt2web
3 DIST = $(BIN).tar.xz
3 SCRIPT = $(PKG).ros
4 SCRIPT = $(BIN).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 BLACK := $(shell tput setaf 0)
17 BLACK := $(shell tput setaf 0)
7 RED := $(shell tput setaf 1)
18 RED := $(shell tput setaf 1)
@@ -26,7 +37,7 b' graphs: diagrams.png'
26 $(BIN): bin/$(BIN)
37 $(BIN): bin/$(BIN)
27 ln -f $<
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 @echo
41 @echo
31 @echo "* ${GREEN}Building ${YELLOW}${BIN} ${GREEN}binary${RESET}..."
42 @echo "* ${GREEN}Building ${YELLOW}${BIN} ${GREEN}binary${RESET}..."
32 ros build bin/$(SCRIPT)
43 ros build bin/$(SCRIPT)
@@ -37,7 +48,7 b' bin/$(BIN): *.asd src/*.lisp src/*.ps st'
37 $(DIST): $(BIN) extras/*
48 $(DIST): $(BIN) extras/*
38 @echo
49 @echo
39 @echo "* ${GREEN}Packaging${RESET}..."
50 @echo "* ${GREEN}Packaging${RESET}..."
40 tar cfvJ $@ $< extras
51 $(ARCMD) $(ARARGS) $@ $< extras
41
52
42 clean:
53 clean:
43 rm -f $(BIN) bin/$(BIN) $(DIST)
54 rm -f $(BIN) bin/$(BIN) $(DIST)
General Comments 0
You need to be logged in to leave comments. Login now