-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathposix.mak
78 lines (56 loc) · 1.31 KB
/
posix.mak
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
##### Directories
# Where scp command copies to
SCPDIR=../backup
# Source files
S=src/dmpp
##### Tools
# D compiler
DMD=dmd
# Make program
MAKE=make
# Librarian
LIB=ar
# Delete file(s)
DEL=rm
# Make directory
MD=mkdir
# Remove directory
RD=rmdir
# File copy
CP=cp
# De-tabify
DETAB=detab
# Convert line endings to Unix
TOLF=tolf
# Zip
ZIP=zip
# Copy to another directory
SCP=$(CP)
SRCS=$S/main.d $S/cmdline.d $S/context.d $S/id.d $S/skip.d $S/macros.d $S/textbuf.d \
$S/ranges.d $S/outdeps.d $S/lexer.d $S/constexpr.d $S/number.d $S/stringlit.d \
$S/sources.d $S/loc.d $S/expanded.d $S/directive.d $S/file.d $S/charclass.d
DOCS=LICENSE.md README.md
DDOCS=$S\dmpp.dd
MAKEFILES=win32.mak posix.mak
TARGETS=dmpp.exe dmpp.html
targets : $(TARGETS)
dmpp : $(SRCS)
$(DMD) -g $(SRCS) -ofdmpp
release :
$(DMD) -O -release -inline -noboundscheck $(SRCS) -ofdmpp
unittest : $(SRCS)
$(DMD) -g $(SRCS) -ofdmpp -unittest -cov
dmpp.html : $S/dmpp.dd
$(DMD) $S/dmpp.dd -D
clean:
$(DEL) dmpp
detab:
$(DETAB) $(SRCS) $(DOCS) $(DDOCS)
tolf:
$(TOLF) $(SRCS) $(DOCS) $(DDOCS) $(MAKEFILES)
zip: detab tolf $(SRCS) $(DOCS) $(DDOCS) $(MAKEFILES)
$(DEL) dmppsrc.zip
$(ZIP) dmppsrc $(SRCS) $(DOCS) $(DDOCS) $(MAKEFILES)
scp: detab tolf $(MAKEFILES)
$(SCP) $(MAKEFILES) $(DOCS) $(SCPDIR)/
$(SCP) $(SRCS) $(DDOCS) $(SCPDIR)/src/dmd