-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathone-liners
29 lines (20 loc) · 893 Bytes
/
one-liners
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
# find all the java files
$(shell find . -name '*.java')
# convert java file into fully qualified name
$(subst /,.,$(patsubst %.java,,$(sources)))
$(subst /,.,$(subst %.java,,$(sources)))
# determine if there are duplicate programs in the path.
$(shell find $(subst :, ,$(PATH)) -name ls)
# A non-caching replacement for wildcard.
file-exists = $(shell test -e $1 && echo $1)
# Generate an output file name.
RELEASE_TAR := mpwm-$(shell date +%F).tar.gz
# Convert dos file path to unix.
drive-letter-to-slash = /$(subst :,,$1)
# Handling file names with spaces
# add version suffix to file
get-release-dir = $(release-path)$(if $(all-release-path),_$(words $(all-release-path)))
# determine if a list has duplicates
$(findstring $(words $(list)) $(words $(sort $(list))))
# determine if a file list contains illegal suffix
$(if $(filter-out $1,$2),$(warning Illegal suffixes in list.))