diff options
author | Juan RP <xtraeme@gmail.com> | 2013-05-19 09:39:56 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2013-05-19 09:39:56 +0200 |
commit | 44423c370010af0c273bb0038ed04cc53fcda8cf (patch) | |
tree | f10446959d7e1c23feb4704294cbdd942a773efb /Makefile | |
parent | ab5201f3ba668355825b29ea8a9c9a6780b14fe2 (diff) | |
download | hrmpf-44423c370010af0c273bb0038ed04cc53fcda8cf.tar.gz hrmpf-44423c370010af0c273bb0038ed04cc53fcda8cf.tar.xz hrmpf-44423c370010af0c273bb0038ed04cc53fcda8cf.zip |
Start integration of void-installer and start conversion to non-busybox utils.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Makefile b/Makefile index 56e6ba7..62c4f31 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,23 @@ GITVER := $(shell git rev-parse HEAD) -VERSION = 0.12 +VERSION = 0.13 PREFIX ?= /usr/local SBINDIR ?= $(PREFIX)/sbin SHAREDIR ?= $(PREFIX)/share DRACUTMODDIR ?= $(PREFIX)/lib/dracut/modules.d/01vmklive -all: - sed -e "s|@@MKLIVE_VERSION@@|$(VERSION) $(GITVER)|g" mklive.sh.in > mklive.sh +SHIN += $(shell find -type f -name '*.sh.in') +SCRIPTS += $(SHIN:.sh.in=.sh) + +%.sh: %.sh.in + sed -e "s|@@MKLIVE_VERSION@@|$(VERSION) $(GITVER)|g" $^ > $@ + +all: $(SCRIPTS) install: all install -d $(DESTDIR)$(SBINDIR) install -m755 mklive.sh $(DESTDIR)$(SBINDIR)/void-mklive - install -m755 void-mkrootfs.sh $(DESTDIR)$(SBINDIR)/void-mkrootfs + install -m755 mkrootfs.sh $(DESTDIR)$(SBINDIR)/void-mkrootfs + install -m755 installer.sh $(DESTDIR)$(SBINDIR)/void-installer install -d $(DESTDIR)$(DRACUTMODDIR) install -m755 dracut/*.sh $(DESTDIR)$(DRACUTMODDIR) install -d $(DESTDIR)$(SHAREDIR)/void-mklive @@ -19,7 +25,7 @@ install: all install -m644 isolinux/*.cfg* $(DESTDIR)$(SHAREDIR)/void-mklive clean: - -rm -f mklive.sh + -rm -f *.sh dist: @echo "Building distribution tarball for tag: v$(VERSION) ..." |