aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-01-20 19:42:44 +0100
committerMattias Andrée <maandree@operamail.com>2013-01-20 19:42:44 +0100
commite11791eaa15d49845280bd521171f2f77920ed26 (patch)
treed69489735d4eaa38e443b6e2f3e6dba503dbc529
parentbuilding info (diff)
downloadadjbacklight-e11791eaa15d49845280bd521171f2f77920ed26.tar.gz
adjbacklight-e11791eaa15d49845280bd521171f2f77920ed26.tar.bz2
adjbacklight-e11791eaa15d49845280bd521171f2f77920ed26.tar.xz
m make + installing info file
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index b35a97a..b7a7ea4 100644
--- a/Makefile
+++ b/Makefile
@@ -63,18 +63,20 @@ dvi.xz: $(BOOK).dvi.xz
.PHONY: install
install:
mkdir -p $(DESTDIR)$(PREFIX)/bin
- mkdir -p $(DESTDIR)$(PREFIX)/share/licenses
- install -m 755 adjbacklight $(DESTDIR)$(PREFIX)/bin/
+ mkdir -p $(DESTDIR)$(PREFIX)/share/licenses/$(PROGRAM)
+ mkdir -p $(DESTDIR)$(PREFIX)/share/info/
+ install -m 755 $(PROGRAM) $(DESTDIR)$(PREFIX)/bin/
install -m 644 Adjbacklight.class $(DESTDIR)$(PREFIX)/bin/
- install -m 644 COPYING $(DESTDIR)$(PREFIX)/share/licenses/adjbacklight
- install -m 644 LICENSE $(DESTDIR)$(PREFIX)/share/licenses/adjbacklight
+ install -m 644 COPYING $(DESTDIR)$(PREFIX)/share/licenses/$(PROGRAM)
+ install -m 644 LICENSE $(DESTDIR)$(PREFIX)/share/licenses/$(PROGRAM)
+ install -m 644 $(BOOK).info.gz $(DESTDIR)$(PREFIX)/share/info
# remove files created by `install`
.PHONY: uninstall
uninstall:
unlink $(DESTDIR)$(PREFIX)/bin/Adjbacklight.class
- unlink $(DESTDIR)$(PREFIX)/bin/adjbacklight
- rm -r $(DESTDIR)$(PREFIX)/share/licenses/adjbacklight
+ unlink $(DESTDIR)$(PREFIX)/bin/$(PROGRAM)
+ rm -r $(DESTDIR)$(PREFIX)/share/licenses/$(PROGRAM)
# remove files created by `all`
.PHONY: clean