blob: d57e33dcf4ca74d0b74c13afb1b9cb58c034dd2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
include ../../config.mk
SOURCES = ${shell echo *.pre}
TARGETS = ${SOURCES:.pre=.desktop}
all: ${TARGETS}
.pre.desktop:
sed \
-e 's/\$$VERSION\$$/${VERSION}/g' \
-e 's/\$$DATE\$$/'"$$(date '+%B %d, %Y')"/g \
-e 's/\$$MAN_CURL\$$/${MAN_CURL}/' \
-e 's/\$$MAN_DEBUG\$$/${MAN_DEBUG}/' \
-e 's/\$$MAN_EXIF\$$/${MAN_EXIF}/' \
-e 's/\$$MAN_XINERAMA\$$/${MAN_XINERAMA}/' \
-e 's:\$$IMAGEDIR\$$:${image_dir}:' \
< ${@:.desktop=.pre} > $@
clean:
rm -f *.desktop
.SUFFIXES: .pre .desktop
.PHONY: clean
|