1 LIBS
= -lX11
-lXpm
-lXext
-lm
4 OBJECTS
= wmcalc.o readln.o wmcalcswitch.o wmcalcfunc.o
9 MANDIR
= $(PREFIX
)/share
/man
/man1
11 INSTALL
= /usr
/bin
/install
12 INSTALL_DIR
= $(INSTALL
) -d
13 INSTALL_PROGRAM
= $(INSTALL
)
14 INSTALL_FILE
= $(INSTALL
) -m
644
17 $(CC
) -DCONF
=\"$(CONF
)\" $(CPPFLAGS
) $(CFLAGS
) -c
$< -o
$*.o
20 $(CC
) $(LDFLAGS
) -o
$(TARGET
) $(OBJECTS
) $(LIBS
)
23 for i in
$(OBJECTS
); do if
[ -e
$$i ] ; then
rm $$i; fi
; done
24 if
[ -e
$(TARGET
) ] ; then
rm $(TARGET
); fi
27 $(INSTALL_DIR
) $(DESTDIR
)$(BINDIR
)
28 $(INSTALL_PROGRAM
) wmcalc
$(DESTDIR
)$(BINDIR
)
29 $(INSTALL_DIR
) $(DESTDIR
)$(CONF
)
30 $(INSTALL_FILE
) wmcalc.conf
$(DESTDIR
)$(CONF
)
31 $(INSTALL_DIR
) $(DESTDIR
)$(MANDIR
)
32 $(INSTALL_FILE
) wmcalc
.1 $(DESTDIR
)$(MANDIR
)