X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=Makefile;h=c099771b5436a1a81771a935d40802bfab1a3c44;hb=64a85933213077af3f24c1bdf8a8686356ba1997;hp=c4195a88b1bfdb4edd532e256b16f86695ae8e54;hpb=100127280023c999cd73db88d4ec1bf19cedcc67;p=rrq%2Foverlay-boot.git diff --git a/Makefile b/Makefile index c4195a8..c099771 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +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 +SBINDIR = $(DESTDIR)/usr/sbin 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-diskfile +INITFILES = subhosts +ETCFILES = subhosts.conf # The default is to build asm/reaper REAPER = src/reaper @@ -27,6 +23,14 @@ $(REAPER): reaper: $(REAPER) 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 %/: mkdir -p $@ @@ -53,11 +57,11 @@ clean: .INTERMEDIATE: reaper $(MAN8FILES) # 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 $(INITDIR)/,$(INITFILES)) +INSTALLTARGETS += $(addprefix $(ETCDIR)/,$(ETCFILES)) + install: $(INSTALLTARGETS) # Make target: make a .deb file in ../