summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-06-13 22:43:34 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-06-13 22:43:34 +0200
commit2f04d6ec4c44aceda336c071754406523f03602f (patch)
tree938a192d55921a80e17820a6d9a5bc9d635abf75 /Makefile
parentad21a90b54a7f6865196625a05cf4b5a82a466f7 (diff)
makefile. can be quite useful
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..61a524c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+all: install
+
+install:
+ install -d $(DESTDIR)/sbin
+ install -d $(DESTDIR)/usr/share/aif/docs
+ install -d $(DESTDIR)/usr/share/aif/examples
+ install -d $(DESTDIR)/usr/lib/aif/core
+ install -d $(DESTDIR)/usr/lib/aif/user
+ install -D -m755 src/aif.sh $(DESTDIR)/sbin/aif
+ install -D -m644 HOWTO $(DESTDIR)/usr/share/aif/docs
+ install -D -m644 README $(DESTDIR)/usr/share/aif/docs
+ cp -rp src/core $(DESTDIR)/usr/lib/aif
+ chmod -R 755 $(DESTDIR)/usr/lib/aif/core
+ cp -rp src/user $(DESTDIR)/usr/lib/aif
+ chmod -R 755 $(DESTDIR)/usr/lib/aif/user
+ cp -rp examples $(DESTDIR)/usr/share/aif
+ chmod -R 755 $(DESTDIR)/usr/share/aif/examples
+
+
+uninstall:
+ rm -f $(DESTDIR)/sbin/aif
+ rm -rf $(DESTDIR)/usr/share/aif
+ rm -rf $(DESTDIR)/usr/lib/aif