From e1121600936f8f2753dc214ff71799e218d11fd2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 31 Jan 2013 11:20:29 +0100 Subject: add a desktop file (closes #98) --- share/applications/Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 share/applications/Makefile (limited to 'share/applications/Makefile') diff --git a/share/applications/Makefile b/share/applications/Makefile new file mode 100644 index 0000000..5f4da44 --- /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 *.1 + +.SUFFIXES: .pre .desktop + +.PHONY: clean -- cgit v1.2.3 From 759e14c67ef0637ee82ae5167c203efcd9f3227e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 1 Feb 2013 07:50:24 +0100 Subject: applications/Makefile: fix clean target --- share/applications/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/applications/Makefile') diff --git a/share/applications/Makefile b/share/applications/Makefile index 5f4da44..d57e33d 100644 --- a/share/applications/Makefile +++ b/share/applications/Makefile @@ -17,7 +17,7 @@ all: ${TARGETS} < ${@:.desktop=.pre} > $@ clean: - rm -f *.1 + rm -f *.desktop .SUFFIXES: .pre .desktop -- cgit v1.2.3