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 "."; \
@# 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 \
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
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