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

use DESTDIR in Makefile #6

Open
wants to merge 1 commit 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
25 changes: 13 additions & 12 deletions src/common.mf
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,19 @@ clean:
-rm .depend

common_install:
install -m 775 emwm $(PREFIX)/bin/emwm
install -m 775 -d $(MANDIR)/man1
install -m 664 emwm.1 $(MANDIR)/man1/emwm.1
install -m 775 -d $(RCDIR)
install -m 664 system.emwmrc $(RCDIR)/system.emwmrc
install -m 775 -d $(APPLRESDIR)
install -m 664 Emwm.ad $(APPLRESDIR)/Emwm
install -m 775 -d $(DESTDIR)$(PREFIX)/bin
install -m 775 emwm $(DESTDIR)$(PREFIX)/bin/emwm
install -m 775 -d $(DESTDIR)$(MANDIR)/man1
install -m 664 emwm.1 $(DESTDIR)$(MANDIR)/man1/emwm.1
install -m 775 -d $(DESTDIR)$(RCDIR)
install -m 664 system.emwmrc $(DESTDIR)$(RCDIR)/system.emwmrc
install -m 775 -d $(DESTDIR)$(APPLRESDIR)
install -m 664 Emwm.ad $(DESTDIR)$(APPLRESDIR)/Emwm

uninstall:
rm -f $(PREFIX)/bin/emwm
rm -f $(MANDIR)/man1/emwm.1
rm -f $(RCDIR)/system.emwmrc
rmdir $(RCDIR)
rm -f $(APPLRESDIR)/Emwm
rm -f $(DESTDIR)$(PREFIX)/bin/emwm
rm -f $(DESTDIR)$(MANDIR)/man1/emwm.1
rm -f $(DESTDIR)$(RCDIR)/system.emwmrc
rmdir $(DESTDIR)$(RCDIR)
rm -f $(DESTDIR)$(APPLRESDIR)/Emwm