File: Makefile

package info (click to toggle)
quickres-applet 1.0.1-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 168 kB
  • ctags: 51
  • sloc: ansic: 440; makefile: 116; sh: 5
file content (59 lines) | stat: -rw-r--r-- 1,796 bytes parent folder | download | duplicates (2)
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
# Makefile for the GNOME QuickRes Applet
# 1999 (c) Vicente Aguilar <vaguilar@retemail.es>
# http://members.es.tripod.de/~bisente/gquickres

#############################################################################
###############  YOU SHOULD'N CHANGE ANYTHING IN THIS FILE  #################
###############  - TAKE A LOOK AT THE Makefile.conf FILE -  #################
#############################################################################


include Makefile.conf

# Compiling and linking flags
CCFLAGS=${GNOME_APP_FLAGS} ${CFLAGS} -DPACKAGE=\"${PACKAGE}\" \
        -DVERSION=\"${VERSION}\" -DLOCALE=\"${LOCALEDIR}\" ${NLS} \
		-DWHO=\"${WHO}\" -DDATE=\"${DATE}\" -DCCVER=\"${CCVER}\"
LDFLAGS=-s
LDLIBS=${GNOME_APP_LIBS} ${EXTRA_X11LIBS} -lXxf86vm -lXxf86dga


all: ${TARGET} locale

${TARGET}: src/quickres_applet.c src/small_icon.xpm src/plus_sign.xpm \
           src/minus_sign.xpm
	${CC} ${CCFLAGS} src/quickres_applet.c -o $@ ${LDFLAGS} ${LDLIBS}

locale:
	@if [ "${NLS}" != "" ] ; then \
		cd po && \
		make ; \
	fi

clean:
	@echo Cleaning `pwd` ...
	@rm -f *.o *~ src/*.o src/*~ ${TARGET} core
	@cd po && make clean && cd ..

install: all
	install -c -m755 ${TARGET} ${BINDIR}/${TARGET}
	install -c -m644 src/${TARGET}.desktop ${SHAREDIR}/applets/Utility/${TARGET}.desktop
	install -c -m644 src/${TARGET}.gnorba ${ETCDIR}/${TARGET}.gnorba
	install -c -m644 src/${ICON} ${SHAREDIR}/pixmaps
	if [ "${NLS}" != "" ] ; then \
		cd po && \
		make install; \
	fi

uninstall: 
	rm -f ${BINDIR}/${TARGET}
	rm -f ${SHAREDIR}/applets/Utility/${TARGET}.desktop
	rm -f ${ETCDIR}/${TARGET}.gnorba
	rm -f ${SHAREDIR}/pixmaps/${ICON}
	if [ "${NLS}" != "" ] ; then \
		cd po && \
		make uninstall; \
	fi

tar:
	@cd .. && tar cvzf quickres_applet-${VERSION}.tar.gz quickres_applet-${VERSION}