summaryrefslogtreecommitdiff
path: root/mk/squashfs.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/squashfs.mk')
-rw-r--r--mk/squashfs.mk30
1 files changed, 17 insertions, 13 deletions
diff --git a/mk/squashfs.mk b/mk/squashfs.mk
index 2621772..b11ea40 100644
--- a/mk/squashfs.mk
+++ b/mk/squashfs.mk
@@ -1,24 +1,25 @@
################################################################################
# Embtoolkit
-# Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved.
+# Copyright(C) 2009-2010 Abdoulaye Walsimou GAYE. All rights reserved.
#
-# This program is free software; you can distribute it and/or modify it
-# under the terms of the GNU General Public License
-# (Version 2 or later) published by the Free Software Foundation.
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# This program is distributed in the hope 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.
+# 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
################################################################################
#
# \file squashfs.mk
# \brief squashfs.mk of Embtoolkit.
-# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
# \date August 2009
################################################################################
@@ -28,7 +29,10 @@ SQUASHFS_PACKAGE := squashfs$(SQUASHFS_VERSION).tar.gz
SQUASHFS_HOST_BUILD_DIR := $(TOOLS_BUILD)/squashfs-build
SQUASHFS_TARGET_BUILD_DIR := $(PACKAGES_BUILD)/squashfs-build
-squashfs_host_install: $(SQUASHFS_HOST_BUILD_DIR)/.installed
+squashfs_host_install:
+ @test -e $(SQUASHFS_HOST_BUILD_DIR)/.installed || \
+ $(MAKE) $(SQUASHFS_HOST_BUILD_DIR)/.installed
+
squashfs_target_install: $(SQUASHFS_TARGET_BUILD_DIR)/.installed
#squashfs for host