aboutsummaryrefslogtreecommitdiffstats
path: root/mime/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mime/Makefile')
-rw-r--r--mime/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/mime/Makefile b/mime/Makefile
new file mode 100644
index 00000000..9329d9e8
--- /dev/null
+++ b/mime/Makefile
@@ -0,0 +1,23 @@
+PREFIX = /usr/local
+DATADIR = $(PREFIX)/share
+MIMEDIR = $(DATADIR)/mime/packages/
+MIMELNKDIR= $(DATADIR)/mimelnk/application/
+APPDIR = $(DATADIR)/applications/
+
+DESKTOP_IN := $(wildcard *.desktop.in)
+DESKTOP = $(DESKTOP_IN:.desktop.in=.desktop)
+
+all: $(DESKTOP)
+
+clean:
+ rm -f $(DESKTOP)
+
+install: all
+ install -d $(MIMEDIR) $(MIMELNKDIR) $(APPDIR)
+ install -m644 gurpmi.addmedia.desktop $(APPDIR)/
+ install -m644 x-urpmi-media.desktop $(MIMELNKDIR)/
+ install -m644 urpmi-media.xml $(MIMEDIR)/
+
+%.desktop: %.desktop.in
+ ../po/intltool-merge --utf8 ../po $< $@ -d -u -c ../po/.intltool-merge-cache
+