diff --git a/pkg/openwsn/Makefile b/pkg/openwsn/Makefile index b02298c323fce5c9d3ade832e20b95f5b407f1af..89ef5075cd70d2ef38de5579bb1f9ebb6a810a50 100644 --- a/pkg/openwsn/Makefile +++ b/pkg/openwsn/Makefile @@ -1,31 +1,10 @@ PKG_NAME=openwsn PKG_URL=https://github.com/openwsn-berkeley/openwsn-fw.git PKG_VERSION=ff25e5d0ae5d344ed793a724d60532fb917bf1f8 -PKG_DIR=$(CURDIR)/$(PKG_NAME) -.PHONY: all clean patch reset +.PHONY: all -all: patch +all: download "$(MAKE)" -C $(PKG_DIR) -patch: $(PKG_DIR)/Makefile - -$(PKG_DIR)/Makefile: $(PKG_DIR)/.git/config - cd "$(PKG_DIR)" && git am --ignore-whitespace $(CURDIR)/*.patch - -$(PKG_DIR)/.git/config: - test -d "$(PKG_DIR)" || $(GITCACHE) clone "$(PKG_URL)" "$(PKG_VERSION)" "$(PKG_DIR)" - -clean:: - @echo "Cleaning up OpenWSN package..." - @cd "$(PKG_DIR)" 2> /dev/null > /dev/null && \ - git clean -x -f && \ - git am --abort ; \ - git reset --hard "$(PKG_VERSION)" && \ - $(MAKE) patch || true - -distclean:: - rm -rf "$(PKG_DIR)" - -Makefile.include: - @true +include $(RIOTBASE)/pkg/pkg.mk