forked from mrkline/promptoglyph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 874 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
DC = dmd
DFLAGS = -wi -g
BUILD_DIR = build
INSTALL_DIR = /usr/local/bin
debug: DFLAGS += -debug
debug: all
release: DFLAGS += -O -release
release: all
all: $(BUILD_DIR)/promptoglyph-path $(BUILD_DIR)/promptoglyph-vcs
package: clean release
mkdir promptoglyph
cp $(BUILD_DIR)/promptoglyph-path $(BUILD_DIR)/promptoglyph-vcs promptoglyph
tar cf promptoglyph.tar promptoglyph
gzip -f9 promptoglyph.tar
rm -r promptoglyph
$(BUILD_DIR)/promptoglyph-path: promptoglyph-path.d help.d
@mkdir -p $(BUILD_DIR)
$(DC) $(DFLAGS) -of$@ $^
$(BUILD_DIR)/promptoglyph-vcs: promptoglyph-vcs.d help.d vcs.d time.d color.d git.d
@mkdir -p $(BUILD_DIR)
$(DC) $(DFLAGS) -of$@ $^
install: clean release
cp $(BUILD_DIR)/promptoglyph-path $(BUILD_DIR)/promptoglyph-vcs $(INSTALL_DIR)
clean:
rm -rf $(BUILD_DIR) promptoglyph.tar.gz
.PHONY: clean debug release all package install