projects
/
rrq
/
overlay-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
resolve lintian complaint
[rrq/overlay-boot.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 8636bf667f8d5fa1e2b2687974e62f55d45ee5e5..b12ee7038b1dc179de338f9ac918ff2acaaf6cc4 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,18
+1,15
@@
-SBINDIR = $(DESTDIR)/usr/sbin
-#ETCDIR = $(DESTDIR)/etc/overlay
-#MAN1DIR = $(DESTDIR)/usr/share/man/man1
+ETCDIR = $(DESTDIR)/etc
+INITDIR = $(DESTDIR)/etc/init.d
MAN8DIR = $(DESTDIR)/usr/share/man/man8
MAN8DIR = $(DESTDIR)/usr/share/man/man8
+SBINDIR = $(DESTDIR)/usr/sbin
VARLIBDIR = $(DESTDIR)/var/lib/overlay-boot
VARLIBDIR = $(DESTDIR)/var/lib/overlay-boot
-#SBINCFILES =
-#SBINFILES = overlay-boot overlay-go overlay-stop
-# The SBINFILES are installed via links; see debian/overlay-boot.links
-#ETCFILES =
-#MAN1FILES =
-MAN8FILES = overlay-boot.8 overlay-go.8 overlay-stop.8
-#HTMLDOC = $(MAN8FILES:%=%.html)
+MAN8FILES = overlay-boot.8 overlay-go.8 overlay-stop.8 overlay-diskfile.8
VARLIBFILES = overlay-boot overlay-go overlay-stop functions reaper
VARLIBFILES += overlay-init overlay-postmount overlay-premount
VARLIBFILES = overlay-boot overlay-go overlay-stop functions reaper
VARLIBFILES += overlay-init overlay-postmount overlay-premount
+VARLIBFILES += overlay-diskfile
+INITFILES = subhosts
+ETCFILES = subhosts.conf
# The default is to build asm/reaper
REAPER = src/reaper
# The default is to build asm/reaper
REAPER = src/reaper
@@
-24,7
+21,15
@@
$(REAPER):
# Specific rule: the reaper program originates from $(REAPER)
reaper: $(REAPER)
# Specific rule: the reaper program originates from $(REAPER)
reaper: $(REAPER)
- cp -p $< $@
+ mv $< $@
+
+# Specific rule: the sysvinit init file
+$(INITDIR)/subhosts: subhosts.sh | $(INITDIR)/
+ cp $< $@
+
+# Specific rule: the sysvinit init configuration file
+$(ETCDIR)/subhosts.conf: subhosts.conf | $(ETCDIR)/
+ cp $< $@
# Generic rule: any dependee directory needs to be created
%/:
# Generic rule: any dependee directory needs to be created
%/:
@@
-46,16
+51,16
@@
$(addprefix $(VARLIBDIR)/,$(VARLIBFILES)): $(VARLIBDIR)/%: % | $(VARLIBDIR)/
# Make target: to clean up this workspace
clean:
# Make target: to clean up this workspace
clean:
- rm -f reaper
overlay-boot
.8
+ rm -f reaper
*
.8
make -C $$(dirname $(REAPER)) clean
make -C $$(dirname $(REAPER)) clean
- dh_clean -d
+
+.INTERMEDIATE: reaper $(MAN8FILES)
# Make target: enumerates that which should be installed
# Make target: enumerates that which should be installed
-#INSTALLTARGETS = $(addprefix $(SBINDIR)/,$(SBINFILES))
-#INSTALLTARGETS += $(addprefix $(ETCDIR)/,$(ETCFILES))
-#INSTALLTARGETS += $(addprefix $(MAN1DIR)/,$(MAN1FILES))
INSTALLTARGETS += $(addprefix $(MAN8DIR)/,$(MAN8FILES))
INSTALLTARGETS += $(addprefix $(VARLIBDIR)/,$(VARLIBFILES))
INSTALLTARGETS += $(addprefix $(MAN8DIR)/,$(MAN8FILES))
INSTALLTARGETS += $(addprefix $(VARLIBDIR)/,$(VARLIBFILES))
+INSTALLTARGETS += $(addprefix $(INITDIR)/,$(INITFILES))
+
install: $(INSTALLTARGETS)
# Make target: make a .deb file in ../
install: $(INSTALLTARGETS)
# Make target: make a .deb file in ../