Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Washer dryer #48

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 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,26 +30,25 @@ 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/
chmod 644 /usr/man/man1/washerDryer.1.gz
cp -f man/washerDryer.1.gz /usr/local/man/man1/
chmod 644 /usr/local/man/man1/washerDryer.1.gz
@echo
@echo "washerDryer installation finished."

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
@echo
@echo "Removing man page..."
rm -f /usr/man/man1/washerDryer.1.gz
rm -f /usr/local/man/man1/washerDryer.1.gz
@echo
@echo "washerDryer uninstall finished."