aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 213a3fa30656bcf534bbef3d9c00c4b1089dac68 (plain) (blame)
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
.POSIX:

CONFIGFILE = config.mk
include $(CONFIGFILE)

OBJ =\
	collection.o\
	dragging.o\
	dropping.o\
	events.o\
	files.o\
	filters.o\
	image.o\
	opening.o\
	preferences.o\
	printing.o\
	properties.o\
	render.o\
	transform.o\
	ui.o\
	zoom.o\
	logical-scroll-pane.o\
	gbild.o

HDR =\
	common.h\
	logical-scroll-pane.h

all: gbild
$(OBJ): $(HDR)

.c.o:
	$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)

gbild: $(OBJ)
	$(CC) -o $@ $(OBJ) $(LDFLAGS)

install: gbild
	mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
	mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/"
	mkdir -p -- "$(DESTDIR)$(PREFIX)/share/applications/"
	cp -- gbild "$(DESTDIR)$(PREFIX)/bin/"
	cp -- gbild.1 "$(DESTDIR)$(MANPREFIX)/man1/"
	cp -- gbild.desktop "$(DESTDIR)$(PREFIX)/share/applications/"

uninstall:
	-rm -f -- "$(DESTDIR)$(PREFIX)/bin/gbild"
	-rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/gbild.1"
	-rm -f -- "$(DESTDIR)$(PREFIX)/share/applications/gbild.desktop"

clean:
	-rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch *.gcov *.gcno *.gcda
	-rm -f -- gbild

.SUFFIXES:
.SUFFIXES: .o .c

.PHONY: all install uninstall clean