summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-11-22 14:40:20 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:16:26 +0100
commit5e4952e8a796851369073d47e375e97c072e040f (patch)
tree102412a488c35606ad867bbfa468d21366078ea6 /Makefile
parentaf64109b622dd1a33cb9052d33a58557bef44503 (diff)
downloadlive-build-5e4952e8a796851369073d47e375e97c072e040f.zip
live-build-5e4952e8a796851369073d47e375e97c072e040f.tar.gz
Adding debian version 2.0~a1-1.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 10 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 5bbe14c..aa61e1c 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ all: test install
test:
# Checking for syntax errors
- for SCRIPT in functions.sh functions/* examples/*/*.sh helpers/* hooks/*; \
+ for SCRIPT in live-helper.sh functions/* examples/*/*.sh helpers/* hooks/*; \
do \
sh -n $$SCRIPT; \
done
@@ -16,7 +16,7 @@ test:
# Checking for bashisms
if [ -x /usr/bin/checkbashisms ]; \
then \
- checkbashisms functions.sh functions/* examples/*/*.sh helpers/* hooks/*; \
+ checkbashisms live-helper.sh functions/* examples/*/*.sh helpers/* hooks/*; \
else \
echo "WARNING: skipping bashism test - you need to install devscripts."; \
fi
@@ -25,13 +25,13 @@ build:
@echo "Nothing to build."
install:
- # Installing executables
- mkdir -p $(DESTDIR)/usr/bin
- cp helpers/* $(DESTDIR)/usr/bin
-
# Installing shared data
mkdir -p $(DESTDIR)/usr/share/live-helper
- cp -r data examples functions.sh functions hooks includes lists templates $(DESTDIR)/usr/share/live-helper
+ cp -r data examples live-helper.sh functions helpers hooks includes lists templates $(DESTDIR)/usr/share/live-helper
+
+ # Installing executables
+ mkdir -p $(DESTDIR)/usr/bin
+ mv $(DESTDIR)/usr/share/live-helper/helpers/lh $(DESTDIR)/usr/share/live-helper/helpers/live-helper $(DESTDIR)/usr/bin
# Installing documentation
mkdir -p $(DESTDIR)/usr/share/doc/live-helper
@@ -64,15 +64,12 @@ install:
mkdir -p $(DESTDIR)/var/log
uninstall:
- # Uninstalling executables
- for HELPER in helpers/*; \
- do \
- rm -f $(DESTDIR)/usr/bin/$$(basename $$HELPER); \
- done
-
# Uninstalling shared data
rm -rf $(DESTDIR)/usr/share/live-helper
+ # Uninstalling executables
+ rm -f $(DESTDIR)/usr/bin/lh $(DESTDIR)/usr/bin/live-helper
+
# Uninstalling documentation
rm -rf $(DESTDIR)/usr/share/doc/live-helper