1 LIBDIR
= -L
/usr
/X11R6
/lib
-L
/usr
/lib
-L
/opt
/gnome
/lib
2 LIBS
= -lXpm
-lXext
-lX11
`pkg-config gtk+-2.0 --libs` -ldockapp
3 CFLAGS
= `pkg-config gtk+-2.0 --cflags`
6 exec_prefix = $(prefix)
7 bindir = $(exec_prefix)/bin
10 INSTALL_PROGRAM
= $(INSTALL
)
13 cc -c
-O2
-Wall
$< -o
$*.o
$(CFLAGS
)
16 cc -Wall
-pedantic
-o washerDryer
$^
$(LIBDIR
) $(LIBS
)
21 for i in
$(OBJS
) ; do \
28 @echo
"Installing config file..."
29 cp wdryerrc
$(HOME
)/.wdryerrc
30 chmod
600 $(HOME
)/.wdryerrc
32 @echo
"Installing executable..."
33 $(MKDIR_P
) $(DESTDIR
)$(bindir)
34 $(INSTALL_PROGRAM
) washerDryer
$(DESTDIR
)$(bindir)/washerDryer
36 @echo
"Installing man page..."
37 cp
-f man
/washerDryer
.1.gz
/usr
/local
/man
/man1
/
38 chmod
644 /usr
/local
/man
/man1
/washerDryer
.1.gz
40 @echo
"washerDryer installation finished."
44 @echo
"Removing executable..."
45 rm -f
$(DESTDIR
)$(bindir)/washerDryer
47 @echo
"Removing config file..."
48 rm -f
$(HOME
)/.wdryerrc
50 @echo
"Removing man page..."
51 rm -f
/usr
/local
/man
/man1
/washerDryer
.1.gz
53 @echo
"washerDryer uninstall finished."