dockapps/wmtz-0.7/wmtz/Makefile
Carlos R. Mafra 21625f40b5 Initial dockapps git repo
I tried to get the latest versions from dockapps.org, but I haven't
tested any of them.

More dockapps will be added as time permits.
2011-03-25 19:45:13 +01:00

47 lines
964 B
Makefile

CC = gcc
LIBDIR = -L/usr/X11R6/lib
LIBS = -lXpm -lXext -lX11 -lm
FLAGS = -O2
DESTDIR = /usr/local
OBJS = wmtz.o \
../wmgeneral/wmgeneral.o \
../wmgeneral/misc.o \
../wmgeneral/list.o
.c.o:
$(CC) -I/usr/X11R6/include $(FLAGS) -c -Wall $< -o $*.o
wmtz: $(OBJS)
$(CC) $(FLAGS) -o wmtz $^ -lXext $(LIBDIR) $(LIBS)
all:: wmtz
clean::
for i in $(OBJS) ; do \
rm -f $$i ; \
done
rm -f wmtz
rm -f *~
install:: wmtz
cp -f wmtz $(DESTDIR)/bin/
chmod 755 $(DESTDIR)/bin/wmtz
chown root:root $(DESTDIR)/bin/wmtz
cp -f wmtz.1 $(DESTDIR)/man/man1
chmod 644 $(DESTDIR)/man/man1/wmtz.1
chown root:root $(DESTDIR)/man/man1/wmtz.1
cp -f wmtzrc $(HOME)/.wmtzrc
chmod 600 $(HOME)/.wmtzrc
cp -f wmtzrc /etc/wmtzrc
chmod 644 /etc/wmtzrc
chown root:root /etc/wmtzrc
@echo "wmtz: Installation finished..."
uninstall::
rm -i /usr/local/bin/wmtz
rm -i /etc/wmtzrc
chmod 666 $(HOME)/.wmtzrc
rm -i $(HOME)/.wmtzrc
@echo "wmtz: Uninstall completed..."