[riot-notifications] [RIOT] Add libcoap as BSD ports-like package (#336)

Oleg Hahm notifications at github.com
Tue Nov 19 00:53:33 CET 2013


> +
> +.PHONY: all clean
> +
> +all: patch 
> +	make -C $(PKG_NAME)
> +
> +patch: $(PKG_NAME)/Makefile
> +	
> +$(PKG_NAME)/Makefile: $(PKG_NAME)/.git/config	
> +	cd $(PKG_NAME) && git apply ../patch.txt
> +
> +$(PKG_NAME)/.git/config:
> +	git clone $(PKG_URL) $(PKG_NAME) && cd $(PKG_NAME) && git checkout $(VERSION)
> +
> +clean:
> +	rm -rf $(PKG_NAME)

> That is why I removed the   `rm -r` line.
> The reason for the less aggressive clean target is that I don't want to
> download the whole project each time after I ran make clean. It's a
> waste of time and resources. I suggest adding a `realclean` target if
> you want to support this kind of behavior.

Wouldn't that be 'make mrproper' in *nix terminology?

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/336/files#r7744398
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20131118/0751c313/attachment.html>


More information about the notifications mailing list