aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-01-20 19:24:27 +0100
committerMattias Andrée <maandree@operamail.com>2013-01-20 19:24:27 +0100
commit480cca16eda4a174240ac6c3bf9722f762791f03 (patch)
tree317d6b1ac1caf2496545fd2e3f6b2b5b19220bdd /Makefile
parentbug fix (diff)
downloadadjbacklight-480cca16eda4a174240ac6c3bf9722f762791f03.tar.gz
adjbacklight-480cca16eda4a174240ac6c3bf9722f762791f03.tar.bz2
adjbacklight-480cca16eda4a174240ac6c3bf9722f762791f03.tar.xz
final touches
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile25
1 files changed, 23 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7ea9bab..a5a182a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,36 @@
+# Copyright © 2012, 2013 Mattias Andrée (maandree@member.fsf.org)
+#
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved. This file is offered as-is,
+# without any warranty.
+#
+# [GNU All Permissive License]
+
+
+PREFIX=/usr
+
+
+# compile the package
all:
javac -cp . Adjbacklight.java
+# install to system
install:
mkdir -p $(DESTDIR)$(PREFIX)/bin
- install -m 775 adjbacklight $(DESTDIR)$(PREFIX)/bin/
- install -m 664 Adjbacklight.class $(DESTDIR)$(PREFIX)/bin/
+ mkdir -p $(DESTDIR)$(PREFIX)/share/licenses
+ install -m 755 adjbacklight $(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
+# remove files created by `install`
uninstall:
unlink $(DESTDIR)$(PREFIX)/bin/Adjbacklight.class
unlink $(DESTDIR)$(PREFIX)/bin/adjbacklight
+ rm -r $(DESTDIR)$(PREFIX)/share/licenses/adjbacklight
+# remove files created by `all`
clean:
rm Adjbacklight.class