diff options
author | Dennis Real <github@tildepipe.org> | 2013-02-02 20:53:23 +0100 |
---|---|---|
committer | Dennis Real <github@tildepipe.org> | 2013-02-02 20:53:23 +0100 |
commit | 353578ebc130f53547996ab87f5b3795c1360f3f (patch) | |
tree | 8a19969f7eb377f692892e24c24ba116940ba942 /share/applications/Makefile | |
parent | 38c3c37b5c45691211ed62e40a6c5f503b054335 (diff) | |
parent | 6ea43a3213bb264525e04c729c67204f82c7a2c8 (diff) |
Merge branch 'master' of git://github.com/derf/feh
Diffstat (limited to 'share/applications/Makefile')
-rw-r--r-- | share/applications/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/share/applications/Makefile b/share/applications/Makefile new file mode 100644 index 0000000..d57e33d --- /dev/null +++ b/share/applications/Makefile @@ -0,0 +1,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 |