comparison Makefile.in @ 57:8e1c8afac4dd

- adaptation for $prefix. now configure go along with fakeroot etc. - made all: as the default target in Makefile. OpenBSD requires this. pointed out by iratqq. - replaced target distclean: with mostlyclean:. - added new target maintainer-clean:. this target will erase all mercurial files with intention of making source tree for release.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Sat, 17 May 2008 21:03:17 +0900
parents 9ac8cea32513
children f83b14fbca23
comparison
equal deleted inserted replaced
52:ac1259fde1d0 57:8e1c8afac4dd
6 CFLAGS = -fPIC -shared -Wall $(PIDGIN_CFLAGS) $(GLIB_CFLAGS) 6 CFLAGS = -fPIC -shared -Wall $(PIDGIN_CFLAGS) $(GLIB_CFLAGS)
7 7
8 GLIB_LIBS = @GLIB_LIBS@ 8 GLIB_LIBS = @GLIB_LIBS@
9 LDFLAGS = $(GLIB_LIBS) 9 LDFLAGS = $(GLIB_LIBS)
10 10
11 PIDGIN_LIB_DIR = @PIDGIN_LIB_DIR@ 11 PIDGIN_PLUGIN_DIR = @PIDGIN_PREFIX@/lib/pidgin
12 12
13 13
14 default: $(OBJECTIVE) 14 all: $(OBJECTIVE)
15 15
16 16
17 $(OBJECTIVE): $(SRC) 17 $(OBJECTIVE): $(SRC)
18 gcc -o $@ $< $(CFLAGS) $(LDFLAGS) -g 18 gcc -o $@ $< $(CFLAGS) $(LDFLAGS) -g
19 19
20 20
21 install: $(OBJECTIVE) 21 install: $(OBJECTIVE)
22 install -m 755 $(OBJECTIVE) $(PIDGIN_LIB_DIR)/pidgin 22 install -m 755 $(OBJECTIVE) $(PIDGIN_PLUGIN_DIR)
23 23
24 24
25 clean: 25 clean:
26 rm -f $(OBJECTIVE) 26 rm -f $(OBJECTIVE)
27 27
28 28
29 distclean: clean 29 mostlyclean: clean
30 rm -f Makefile config.log config.status aclocal.m4 *~ 30 rm -f Makefile config.log config.status aclocal.m4 *~
31 rm -rf autom4te.cache 31 rm -rf autom4te.cache
32 32
33
34 maintainer-clean: mostlyclean
35 rm -f .hgtags
36 rm -rf .hg