wmifs: Update Makefile.
Patch by Jordi Mallach <jordi@debian.org>. First appeared in Debian package version 1.3b1-6. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=27458 for more information.
This commit is contained in:
parent
d40bd41287
commit
44d68e454e
|
@ -1,3 +1,10 @@
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
prefix =/usr/local
|
||||||
|
bindir=${prefix}/bin
|
||||||
|
CONF=/etc
|
||||||
|
|
||||||
|
CC = gcc
|
||||||
LIBDIR = -L/usr/X11R6/lib
|
LIBDIR = -L/usr/X11R6/lib
|
||||||
LIBS = -lXpm -lXext -lX11
|
LIBS = -lXpm -lXext -lX11
|
||||||
OBJS = wmifs.o \
|
OBJS = wmifs.o \
|
||||||
|
@ -5,29 +12,32 @@ OBJS = wmifs.o \
|
||||||
../wmgeneral/misc.o \
|
../wmgeneral/misc.o \
|
||||||
../wmgeneral/list.o
|
../wmgeneral/list.o
|
||||||
|
|
||||||
|
CFLAGS = -Wall -O2 -g
|
||||||
|
|
||||||
|
INSTALL = /usr/bin/install
|
||||||
|
INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755
|
||||||
|
INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
|
||||||
|
INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
cc -c -O2 -Wall $< -o $*.o
|
$(CC) -c $(CFLAGS) $< -o $*.o
|
||||||
|
|
||||||
wmifs: $(OBJS)
|
wmifs: $(OBJS)
|
||||||
cc -o wmifs $^ -lXext $(LIBDIR) $(LIBS)
|
$(CC) -o wmifs $^ -lXext $(LIBDIR) $(LIBS)
|
||||||
|
|
||||||
all:: wmifs
|
all:: wmifs
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
for i in $(OBJS) ; do \
|
for i in $(OBJS) ; do \
|
||||||
rm $$i ; \
|
rm -f $$i ; \
|
||||||
done
|
done
|
||||||
rm wmifs
|
rm -f wmifs
|
||||||
|
|
||||||
install::
|
install::
|
||||||
cp -f wmifs /usr/local/bin/
|
$(INSTALL_DIR) $(DESTDIR)$(bindir)
|
||||||
chmod 755 /usr/local/bin/wmifs
|
$(INSTALL_DIR) $(DESTDIR)$(CONF)
|
||||||
chown root:root /usr/local/bin/wmifs
|
$(INSTALL_PROGRAM) wmifs $(DESTDIR)$(bindir)
|
||||||
cp sample.wmifsrc /etc/wmifsrc
|
$(INSTALL_FILE) sample.wmifsrc $(DESTDIR)$(CONF)/wmifsrc
|
||||||
chown root:root /etc/wmifsrc
|
@echo "WMiFS-1.3beta installation finished..."
|
||||||
chmod 644 /etc/wmifsrc
|
@echo " "
|
||||||
cp -f sample.wmifsrc $(HOME)/.wmifsrc
|
@echo "have fun! ;-)"
|
||||||
echo "WMiFS-1.3beta installation finished..."
|
|
||||||
echo " "
|
|
||||||
echo "have fun! ;-)"
|
|
||||||
|
|
Loading…
Reference in a new issue