~ubuntu-branches/debian/sid/bluefish/sid

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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Bluefish HTML Editor
# Makefile.in - the Makefile template
# Copyright (C) 2002-2006 Olivier Sessink
#
# 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; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.


SHELL = /bin/sh
VPATH = @srcdir@

PACKAGE = @PACKAGE@
VERSION = @VERSION@

srcdir = src

prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
datadir=@datadir@
datarootdir = @datarootdir@
pkgdatadir=$(datadir)/$(PACKAGE)
pixmapsdir=@prefix@/share/pixmaps

INSTALLMAIN=@INSTALLMAIN@
MAKEMAIN=@MAKEMAIN@

iconpath=@ICONPATH@

INSTALL = @INSTALL@
INSTALL_DIR = $(INSTALL) -d -m 755 
INSTALL_DATA = $(INSTALL) -m 644

#make -C is a GNU extension, BSD make doesn't have it
#use cd dir ; make all instead
#and [ "bla" == "bla" ] does not work on netBSD
#use [ "bla" = "bla" ] instead

bluefish:all
all: ${MAKEMAIN}
	@cd src/ && $(MAKE) all
	@cd data/ && $(MAKE) all
	@cd man/ && $(MAKE) all

make-nls:
	cd po/ && $(MAKE) all;

clean:
	rm -f core *~
	@cd src/ && $(MAKE) clean
	@cd po/ && $(MAKE) clean
	@cd data/ && $(MAKE) clean
	@cd man/ && $(MAKE) clean

patchclean: clean
	rm -f *.orig *.rej
	@cd src/ && $(MAKE) patchclean  

distclean:
	@cd src/ && $(MAKE) distclean
	@cd po/ && $(MAKE) distclean
	@cd data/ && $(MAKE) distclean
	@cd man/ && $(MAKE) distclean
	rm -f Makefile src/Makefile icons/Makefile config.status config.cache config.log
	rm -rf autom4te.cache/
	rm -f *.orig *.rej

install-icon:
	$(INSTALL_DIR) $(DESTDIR)$(iconpath)
	$(INSTALL_DATA) inline_images/bluefish_icon1.png $(DESTDIR)$(iconpath)/bluefish-icon.png

install-nls:
	cd po/ && $(MAKE) install

install: src/bluefish ${INSTALLMAIN}
	pkgdatadir=@pkgdatadir@
	$(INSTALL_DIR) $(DESTDIR)$(pkgdatadir)
	$(INSTALL_DATA) images/bluefish_splash.png $(DESTDIR)$(pkgdatadir)
	@cd icons/ && $(MAKE) install
	@cd src/ && $(MAKE) install
	@cd data/ && $(MAKE) install
	@cd man/ && $(MAKE) install

uninstall:
	@cd icons/ && $(MAKE) uninstall
	@cd src/ && $(MAKE) uninstall
	@cd po/ && $(MAKE) uninstall
	@cd data/ && $(MAKE) uninstall
	@cd man/ && $(MAKE) uninstall
	rm -f $(pkgdatadir)/bluefish_splash.png
	rm -f $(iconpath)/bluefish-icon.png
	/bin/rmdir $(DESTDIR)$(pkgdatadir)