aboutsummaryrefslogtreecommitdiffstats
path: root/mime/Makefile
blob: 078b02875fea6cac5f71f45251dc4e0972282b51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
	intltool-merge --utf8 ../po $< $@ -d -u -c intltool-merge-cache