Files
mkinitramfs/Makefile
Jay Larson 0a7a028b03 The following changes were made:
* Re-wrote mkinitramfs in Perl
  * Re-wrote substantial portions of /init ZFS root in initrd
  * Version is now retreived from mkinitramfs VERSION
  * Updated dependencies
  * Added usher to add default bins and mods
2017-06-15 16:44:42 -05:00

40 lines
1.1 KiB
Makefile

# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation here:
# (http://www.gnu.org/licenses/gpl-2.0.html)
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
DEPENDS = coreutils,cpio,eudev,gzip,perl,psmisc,sed,util-linux
ARCH = x86_64
URL =
DESC = This package includes scripts to build an initrd image
SNAPVER = 0
ARCHIVE := ''
SRCDIR := $(PWD)/SRC/mkinitramfs
PATCHDIR := $(PWD)/SRC/patches
VERSION := $(shell grep 'VERSION =>' $(SRCDIR)/mkinitramfs| \
sed "s/.*=>\s\+'\|'.*//g")-$(SNAPVER)
include /usr/share/snap/Makefile.snaplinux
$(ROOT): $(SRCDIR)/Makefile
@if [ -d $(ROOT) ]; then \
touch $(ROOT); \
else \
mkdir -v $(ROOT); \
fi
@cd $(SRCDIR) && make install DESTDIR=$(ROOT)
clean:
@rm -rvf $(ROOT) \
$(SNAPINFO) \
$(MANIFEST) \
$(FILES)