summaryrefslogtreecommitdiffstats
path: root/package/sfdisk/sfdisk.mk
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-10-09 01:24:28 +0000
committerEric Andersen <andersen@codepoet.org>2004-10-09 01:24:28 +0000
commit73f7be82904f487d167493e76b415fbe5b5f8c5a (patch)
tree8d9acaf4414892fad533fd92ebfc7e65a2ad2785 /package/sfdisk/sfdisk.mk
parent0b5ad783691ef6fa1285c8d7858a51c425a8b38d (diff)
downloadbuildroot-novena-73f7be82904f487d167493e76b415fbe5b5f8c5a.tar.gz
buildroot-novena-73f7be82904f487d167493e76b415fbe5b5f8c5a.zip
Remove the old 'make' directory, and populate the new 'package'
directory.
Diffstat (limited to 'package/sfdisk/sfdisk.mk')
-rw-r--r--package/sfdisk/sfdisk.mk36
1 files changed, 36 insertions, 0 deletions
diff --git a/package/sfdisk/sfdisk.mk b/package/sfdisk/sfdisk.mk
new file mode 100644
index 000000000..c6b5e632b
--- /dev/null
+++ b/package/sfdisk/sfdisk.mk
@@ -0,0 +1,36 @@
+#############################################################
+#
+# sfdisk support
+#
+#############################################################
+SFDISK_SOURCE=sfdisk.tar.bz2
+SFDISK_SITE:=http://www.uclibc.org/
+SFDISK_DIR=$(BUILD_DIR)/sfdisk
+
+
+$(DL_DIR)/$(SFDISK_SOURCE):
+ $(WGET) -P $(DL_DIR) $(SFDISK_SITE)/$(SFDISK_SOURCE)
+
+$(SFDISK_DIR): $(DL_DIR)/$(SFDISK_SOURCE)
+ bzcat $(DL_DIR)/$(SFDISK_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+
+$(SFDISK_DIR)/sfdisk: $(SFDISK_DIR)
+ $(MAKE) CROSS=$(TARGET_CROSS) DEBUG=false -C $(SFDISK_DIR);
+ -$(STRIP) $(SFDISK_DIR)/sfdisk;
+ touch -c $(SFDISK_DIR)/sfdisk
+
+$(TARGET_DIR)/sbin/sfdisk: $(SFDISK_DIR)/sfdisk
+ cp $(SFDISK_DIR)/sfdisk $(TARGET_DIR)/sbin/sfdisk;
+ touch -c $(TARGET_DIR)/sbin/sfdisk
+
+sfdisk: uclibc $(TARGET_DIR)/sbin/sfdisk
+
+sfdisk-source: $(DL_DIR)/$(SFDISK_SOURCE)
+
+sfdisk-clean:
+ rm -f $(TARGET_DIR)/sbin/sfdisk
+ -$(MAKE) -C $(SFDISK_DIR) clean
+
+sfdisk-dirclean:
+ rm -rf $(SFDISK_DIR)
+