summaryrefslogtreecommitdiff
path: root/ptranslate/translators-posix/Makefile.in
blob: 91f8c9cb7fc4a792a375a5fba806e24b3d1d8ae3 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/make -f
ver = 1.9.0
#   Copyright (C) 2009 Luke Shumaker
#   
#   This file is part of pget.
#   
#   pget is free software; you can redistribute it and/or modify it under the
#   terms of the GNU General Public License as published by the Free Software
#   Foundation; either version 2, or (at your option) any later version.
#   
#   rvs is distributed in the hope that it will be useful, but
#   WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#   See the GNU General Public License for more details.
#   
#   You should have received a copy of the GNU General Public License
#   along with rvs; see the file COPYING.
#   If not, write to the Free Software Foundation,
#   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

srcdir ?= @srcdir@/translators
prefix ?= @prefix@
exec_prefix ?= @exec_prefix@
bindir ?= @bindir@
sbindir ?= @sbindir@
libexecdir ?= @libexecdir@

INSTALL ?= install
MKDIR ?= $(INSTALL) -d #mkdir -p
INSTALL_PROGRAM ?= $(INSTALL)
INSTALL_DATA ?= $(INSTALL) -m 644
RM ?= rm -f

all     : x-bzip2 x-gzip x-tar
install : mime install-x-bzip2 install-x-gzip install-x-tar
.PHONY  : install-x-bzip2 install-x-gzip install-x-tar
.SUFFIXES : 
VPATH = $(srcdir)

mime :
	$(MKDIR) $(libexecdir)/media-types
	$(MKDIR) $(libexecdir)/media-types/application
	$(MKDIR) $(libexecdir)/media-types/audio
	$(MKDIR) $(libexecdir)/media-types/image
	$(MKDIR) $(libexecdir)/media-types/message
	$(MKDIR) $(libexecdir)/media-types/model
	$(MKDIR) $(libexecdir)/media-types/multipart
	$(MKDIR) $(libexecdir)/media-types/text
	$(MKDIR) $(libexecdir)/media-types/video


install-x-bzip2: $(libexecdir)/media-types/application/x-bzip2
install-x-gzip : $(libexecdir)/media-types/application/x-gzip
install-x-tar  : $(libexecdir)/media-types/application/x-tar

$(libexecdir)/media-types/application/% : % mime; $(INSTALL_PROGRAM) $< $@
$(libexecdir)/media-types/audio/%       : % mime; $(INSTALL_PROGRAM) $< $@
$(libexecdir)/media-types/image/%       : % mime; $(INSTALL_PROGRAM) $< $@
$(libexecdir)/media-types/message/%     : % mime; $(INSTALL_PROGRAM) $< $@
$(libexecdir)/media-types/model/%       : % mime; $(INSTALL_PROGRAM) $< $@
$(libexecdir)/media-types/multipart/%   : % mime; $(INSTALL_PROGRAM) $< $@
$(libexecdir)/media-types/text/%        : % mime; $(INSTALL_PROGRAM) $< $@
$(libexecdir)/media-types/video/%       : % mime; $(INSTALL_PROGRAM) $< $@

remove : 
	$(RM) -r $(libexecdir)/media-types

% : %.sh
	$(INSTALL_PROGRAM) $< $@