struct / union in initializer, RFE #901.
[sdcc.git] / sdcc-cf / packages / build.gputils / Makefile
blobddc70d940c3b397341cadc5626ec5e62d7e52df4
1 ###############################################################################
2 # To build gputils from the svn HEAD:
3 # make FROM_SVN=1
5 include ../packages.mk
7 PACKAGE=gputils
8 VERSION=1.5.0
9 PACKAGE_FILE=$(PACKAGE)-$(VERSION).tar.gz
11 all: do-all
13 ifdef FROM_SVN
14 PACKAGE_DIR=$(PACKAGE)
16 $(PACKAGE)-unpack.tag:
17 svn --force export svn://svn.code.sf.net/p/gputils/code/trunk/gputils gputils
18 touch $@
19 else
20 PACKAGE_DIR=$(PACKAGE)-$(VERSION)
22 download/$(PACKAGE_FILE):
23 wget -P download http://sourceforge.net/projects/$(PACKAGE)/files/$(PACKAGE_FILE)
25 $(PACKAGE)-unpack.tag: unpack-downloaded-package
26 touch $@
27 endif
29 $(PACKAGE)-configure.tag: $(PACKAGE)-unpack.tag
30 cd $(PACKAGE_DIR) && \
31 ./configure --prefix=$(LOCAL_DIR) --disable-html-doc
32 touch $@
34 $(PACKAGE)-make.tag: $(PACKAGE)-configure.tag
35 $(MAKE) -C $(PACKAGE_DIR)
36 touch $@
38 $(PACKAGE)-install.tag: $(PACKAGE)-make.tag
39 $(MAKE) -C $(PACKAGE_DIR) install
40 touch $@
42 include ../common_deps.mk