summaryrefslogtreecommitdiff
path: root/ptranslate/translators-posix/Makefile.in
blob: f89717847ba365854087e7a10d41f28d1ae68134 (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/make -f
#name = ptranslate-unix
#ver = 1.9.0
#  Copyright (C) 2009 Luke Shumaker
#  
#  This program 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 of the
#  License, or (at your option) any later version.
#  
#  This program 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 this program;  see the file COPYING.
#  If not, see <http://www.gnu.org/licenses>.

# Directories ########################################################
DESTDIR = @DESTDIR@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
dirs = $(DESTDIR) $(prefix) $(exec_prefix) $(bindir) $(sbindir) $(libexecdir)
srcdir = @srcdir@
mysrcdir = $(srcdir)/translators-posix

# Programs ###########################################################
SHELL = /bin/sh
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 = $(mysrcdir)
$(info $(VPATH))

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


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

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

uninstall : 
	$(RM) -r $(DESTDIR)$(libexecdir)/media-types

# implicit rules #####################################################
$(dirs) :
	$(MKDIR) $@

% : %.sh
	$(SED) 's/@VER@/$ver/g' < $< > $@

$(DESTDIR)$(bindir)/% : % $(DESTDIR)$(bindir)
	$(INSTALL_PROGRAM) $< $@

Makefile : $(srcdir)/configure
	$<