2013-03-21 06:01:34 +00:00
|
|
|
DROPBOX := dropbox_uploader.sh
|
|
|
|
UNAME := $(shell uname -m)
|
2013-04-22 06:14:26 +00:00
|
|
|
DOWNLOAD:= ../doc/html/download.c
|
2013-11-13 13:57:14 +00:00
|
|
|
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
2013-03-21 04:47:46 +00:00
|
|
|
ifneq ($(shell uname -m), x86_64)
|
|
|
|
$(error Cannot build packages without an x86_64 capable CPU)
|
|
|
|
endif
|
|
|
|
|
2013-03-21 06:01:34 +00:00
|
|
|
.NOTPARALLEL: base
|
|
|
|
.NOTPARALLEL: upload
|
|
|
|
|
2013-03-21 02:02:41 +00:00
|
|
|
base:
|
|
|
|
$(MAKE) -C deb/
|
|
|
|
$(MAKE) -C deb/ CARCH=i686
|
|
|
|
$(MAKE) -C archlinux/this/
|
|
|
|
$(MAKE) -C archlinux/this/ CARCH=i686
|
2013-04-21 11:45:41 +00:00
|
|
|
$(MAKE) -C win32/
|
2013-08-19 23:15:41 +00:00
|
|
|
$(MAKE) -C slackware/this/
|
|
|
|
$(MAKE) -C slackware/this/ CARCH=i686
|
2013-03-21 02:02:41 +00:00
|
|
|
@mv deb/*.deb ./
|
|
|
|
@mv archlinux/this/*pkg.tar.xz ./
|
2013-04-21 11:45:41 +00:00
|
|
|
@mv win32/*.zip ./
|
2013-08-19 23:15:41 +00:00
|
|
|
@mv slackware/this/*.txz ./
|
2013-03-21 02:02:41 +00:00
|
|
|
|
2013-03-21 06:01:34 +00:00
|
|
|
upload:
|
|
|
|
@echo "APPKEY:76vh3q42hnvmzm3" > dropbox_config
|
|
|
|
@echo "APPSECRET:tmeecht2cmh72xa" >> dropbox_config
|
|
|
|
@echo "ACCESS_LEVEL:sandbox" >> dropbox_config
|
|
|
|
@echo "OAUTH_ACCESS_TOKEN:w0bxzf0dft8edfq" >> dropbox_config
|
|
|
|
@echo "OAUTH_ACCESS_TOKEN_SECRET:9vosx7x8gy4kgjk" >> dropbox_config
|
|
|
|
@wget -q "http://raw.github.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh"
|
|
|
|
@chmod +x dropbox_uploader.sh
|
|
|
|
@sed -i -e "s/~\/.dropbox_uploader/.\/dropbox_config/g" $$(basename $(DROPBOX))
|
2013-08-19 23:15:41 +00:00
|
|
|
@find . -type f -regex ".*/.*\.\(xz\|deb\|zip\|txz\)" -exec ./$$(basename $(DROPBOX)) upload {} \;
|
2013-03-21 06:01:34 +00:00
|
|
|
@rm dropbox_config dropbox_uploader.sh
|
|
|
|
|
2013-04-22 06:14:26 +00:00
|
|
|
website:
|
|
|
|
$(CC) $(DOWNLOAD) -o html.gen
|
|
|
|
@./html.gen ../
|
|
|
|
@rm html.gen
|
|
|
|
@git stash
|
|
|
|
@git checkout gh-pages
|
|
|
|
@rm -f ../download.html
|
|
|
|
@mv -f download.html ../download.html
|
|
|
|
@cd ..; git add download.html; git commit -m 'update download page'; git push origin gh-pages;
|
|
|
|
@git checkout $(BRANCH)
|
|
|
|
@git stash apply
|
|
|
|
|
2013-03-21 02:02:41 +00:00
|
|
|
clean:
|
|
|
|
@rm -f *.deb
|
|
|
|
@rm -f *.pkg.tar.xz
|
2013-04-21 11:45:41 +00:00
|
|
|
@rm -f *.zip
|
2013-04-22 06:14:26 +00:00
|
|
|
@rm -f *.gen
|
|
|
|
@rm -f *.html
|
2013-08-19 23:15:41 +00:00
|
|
|
@rm -f *.txz
|
2013-03-21 04:47:46 +00:00
|
|
|
|
2013-03-21 06:01:34 +00:00
|
|
|
all: base upload
|