Skip to content

Commit

Permalink
Fixed make install/uninstall
Browse files Browse the repository at this point in the history
washerDryer dockapp
related to issue window-maker#43
Next on the list created by d-torrance
  • Loading branch information
drobban authored and crmafra committed Feb 9, 2023
1 parent f2bf406 commit 639c909
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions washerdryer/washerDryer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ LIBDIR = -L/usr/X11R6/lib -L/usr/lib -L/opt/gnome/lib
LIBS = -lXpm -lXext -lX11 `pkg-config gtk+-2.0 --libs` -ldockapp
CFLAGS = `pkg-config gtk+-2.0 --cflags`
OBJS = washerDryer.o
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
MKDIR_P = mkdir -p
INSTALL = install
INSTALL_PROGRAM = $(INSTALL)

.c.o:
cc -c -O2 -Wall $< -o $*.o $(CFLAGS)
Expand All @@ -24,9 +30,8 @@ install:: washerDryer
chmod 600 $(HOME)/.wdryerrc
@echo
@echo "Installing executable..."
cp -f washerDryer /usr/local/bin/
chmod 755 /usr/local/bin/washerDryer
chown root:root /usr/local/bin/washerDryer
$(MKDIR_P) $(DESTDIR)$(bindir)
$(INSTALL_PROGRAM) washerDryer $(DESTDIR)$(bindir)/washerDryer
@echo
@echo "Installing man page..."
cp -f man/washerDryer.1.gz /usr/man/man1/
Expand All @@ -37,7 +42,7 @@ install:: washerDryer
uninstall::
@echo
@echo "Removing executable..."
rm -f /usr/local/bin/washerDryer
rm -f $(DESTDIR)$(bindir)/washerDryer
@echo
@echo "Removing config file..."
rm -f $(HOME)/.wdryerrc
Expand Down

0 comments on commit 639c909

Please sign in to comment.