File: Makefile

package info (click to toggle)
gpe-su 0.19-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 212 kB
  • ctags: 25
  • sloc: ansic: 196; xml: 74; makefile: 42
file content (44 lines) | stat: -rw-r--r-- 1,103 bytes parent folder | download
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
PREFIX = /usr/local
PACKAGE = gpe-su
DEBUG = no
CVSBUILD = no
VERSION = 0.19

LINGUAS = nl pt fr sk cs de sv ro ru sr es zh_CN

MEMBERS = gpe-su

PACKAGE_CPPFLAGS = $(STANDARD_CPPFLAGS)
PACKAGE_CFLAGS += $(STANDARD_CFLAGS) $(GTKCFLAGS) $(GPECFLAGS)
PACKAGE_LDFLAGS += $(STANDARD_LDFLAGS) $(GPELIBS) $(GTKLIBS)

PACKAGE_LDFLAGS += -lutil

ifeq ($(CVSBUILD),yes)
BUILD = ../build
else
BUILD = build
endif

DEPS = $(patsubst %,%.d,$(MEMBERS))
OBJS = $(patsubst %,%.o,$(MEMBERS))
SOURCES = $(patsubst %,%.c,$(MEMBERS))

all: $(PACKAGE)

$(PACKAGE): $(OBJS)
	$(CC) -o $@ $^ $(LDFLAGS) $(PACKAGE_LDFLAGS)

clean:
	rm -f $(PACKAGE) $(OBJS) $(DEPS)

install-program: all $(PACKAGE).desktop
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	install -m 755 -s $(PACKAGE) $(DESTDIR)$(PREFIX)/bin/$(PACKAGE)
	mkdir -p $(DESTDIR)$(PREFIX)/share/applications
	install -m 644 $(PACKAGE).desktop $(DESTDIR)$(PREFIX)/share/applications
	mkdir -p $(DESTDIR)$(PREFIX)/share/pixmaps
	install -m 644 $(PACKAGE).png $(DESTDIR)$(PREFIX)/share/pixmaps/$(PACKAGE).png

include $(BUILD)/Makefile.translation
include $(BUILD)/Makefile.dpkg_ipkg