This patch uses the -f option for rm in make clean so that no error occurs when make clean is run while no object or binary files exist. (It also adds a newline at the end of the Makefile thanks to emacs.)
25 lines
513 B
Makefile
Executable file
25 lines
513 B
Makefile
Executable file
LIBDIR = -L/usr/X11R6/lib
|
|
LIBS = -lXpm -lXext -lX11 -lm
|
|
OBJS = wmtime.o \
|
|
../wmgeneral/wmgeneral.o \
|
|
../wmgeneral/misc.o \
|
|
../wmgeneral/list.o
|
|
XPMS = wmtime-master.xpm wmtime-mask.xbm
|
|
|
|
CC = gcc
|
|
CFLAGS += -O2
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -c -Wall $< -o $*.o
|
|
|
|
wmtime: $(OBJS) $(XPMS)
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o wmtime $(OBJS) $(LIBDIR) $(LIBS)
|
|
|
|
clean::
|
|
for i in $(OBJS) ; do \
|
|
rm -f $$i; \
|
|
done
|
|
rm -f wmtime
|
|
|
|
install:: wmtime
|
|
install -m 755 wmtime $(DESTDIR)/usr/bin
|