X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=Makefile;h=85b89099e2926d6636463937afd1d3c8fdc09c96;hb=4836a17e5d999c93d65cefae507cd27eddabbd1f;hp=1018daf42928e442db4cd16ca637ae5f3c5920c6;hpb=6fc8f78d026b31f4f4a3ee6507d726ddc37adbc8;p=live-boot-grml.git diff --git a/Makefile b/Makefile index 1018daf..85b8909 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,14 @@ SHELL := sh -e LANGUAGES = de +SCRIPTS = bin/* hooks/* scripts/live scripts/live-functions scripts/live-helpers scripts/*/* + all: test build test: @echo -n "Checking for syntax errors" - @for SCRIPT in bin/* hooks/* scripts/live scripts/live-functions scripts/live-helpers scripts/*/*; \ + @for SCRIPT in $(SCRIPTS); \ do \ sh -n $${SCRIPT}; \ echo -n "."; \ @@ -22,9 +24,9 @@ test: @# We can't just fail yet on bashisms (FIXME) @if [ -x /usr/bin/checkbashisms ]; \ then \ - for SCRIPT in bin/* hooks/* scripts/live scripts/live-functions scripts/live-helpers scripts/*/*; \ + for SCRIPT in $(SCRIPTS); \ do \ - checkbashisms $${SCRIPT} || true; \ + checkbashisms -f -x $${SCRIPT} || true; \ echo -n "."; \ done; \ else \ @@ -39,7 +41,6 @@ build: install: # (FIXME) # Installing configuration - install -D -m 0644 conf/live.conf $(DESTDIR)/etc/live.conf install -D -m 0644 conf/compcache $(DESTDIR)/usr/share/initramfs-tools/conf.d/compcache # Installing executables @@ -77,10 +78,6 @@ install: done uninstall: - # (FIXME) - # Uninstalling configuration - rm -f $(DESTDIR)/etc/live.conf - # Uninstalling executables rm -f $(DESTDIR)/sbin/live-getty $(DESTDIR)/sbin/live-login $(DESTDIR)/sbin/live-snapshot $(DESTDIR)/sbin/live-swapfile rm -rf $(DESTDIR)/usr/share/live-boot