Imported Upstream version 24.1
[rrq/maintain_lilo.git] / images / Makefile
index 93ce46dcebc17a2f30e3fb4b58798170ea5c8a6f..a4c2186ec51e0dcc3c3133cd0128e80b9160ce25 100644 (file)
@@ -1,4 +1,11 @@
 # -*- makefile -*-
+#
+# Copyright 2009-2014 Joachim Wiedorn
+# All rights reserved.
+# 
+# Licensed under the terms contained in the file 'COPYING'
+# in the source directory.
+#
 
 # adding variables
 include ../make.vars
@@ -6,6 +13,8 @@ include ../make.vars
 BINLILO := ../src/lilo
 BMPS8 := coffee.bmp
 BMPS4 := debian.bmp debian-de.bmp debianlilo.bmp inside.bmp onlyblue.bmp tuxlogo.bmp
+NAME8 := coffee
+NAME4 := debian debian-de debianlilo inside onlyblue tuxlogo
 
 
 all: $(BMPS4) $(BMPS8)
@@ -21,6 +30,12 @@ $(BMPS8): %.bmp: %_256c.uu
 install: all
        mkdir -p $$DESTDIR$(BOOT_DIR)
        install -m 0644  $(BMPS4) $(BMPS8)  $$DESTDIR$(BOOT_DIR)
+       for i in $(NAME8); do \
+               cp $${i}_256c.dat $$DESTDIR$(BOOT_DIR)/$${i}.dat; \
+       done
+       for i in $(NAME4); do \
+               cp $${i}_16c.dat $$DESTDIR$(BOOT_DIR)/$${i}.dat; \
+       done
 
 clean:
        rm -f $(BMPS4) $(BMPS8)
@@ -29,4 +44,7 @@ distclean: clean
 
 uninstall:
        (cd $$DESTDIR$(BOOT_DIR); rm -f $(BMPS4) $(BMPS8))
+       for i in $(NAME4) $(NAME8); do \
+               rm -f $$DESTDIR$(BOOT_DIR)/$${i}.dat; \
+       done