48 lines
1.0 KiB
Makefile
48 lines
1.0 KiB
Makefile
|
|
# UPDATE_PATH=/srv/slt-update
|
|
PACKAGES = clubs.tar.gz
|
|
|
|
export DL_PREFIX=https://slt.wolf-stuttgart.net/update/com_clubs
|
|
|
|
RSYNC_OPTIONS=-rltDz --delete --delete-delay --delete-excluded --exclude '.gitignore' --exclude '.dummy'
|
|
RSYNC_USER=christian
|
|
RSYNC_HOST=hh.wolf-stuttgart.net
|
|
DL_PATH=/srv/http/slt/update/com_clubs
|
|
|
|
all: package
|
|
|
|
package: $(PACKAGES)
|
|
|
|
.PHONY: clubs.tar.gz
|
|
clubs.tar.gz:
|
|
tar czf $@ -C src .
|
|
|
|
.PHONY: release
|
|
release: clubs.tar.gz
|
|
./scripts/create-release.sh
|
|
|
|
.PHONY: release-force
|
|
release-force: clubs.tar.gz
|
|
./scripts/create-release.sh -f
|
|
|
|
.PHONY: upload
|
|
upload: release
|
|
$(MAKE) reupload
|
|
|
|
.PHONY: slt-update.xml
|
|
slt-update.xml:
|
|
./scripts/create-update-xml.sh
|
|
|
|
.PHONY: reupload
|
|
reupload: slt-update.xml
|
|
@echo Pushing files
|
|
@rsync $(RSYNC_OPTIONS) releases/ $(RSYNC_USER)@$(RSYNC_HOST):$(DL_PATH)/files -v
|
|
|
|
@echo Pushing XML configuration
|
|
@rsync $(RSYNC_OPTIONS) slt-update.xml $(RSYNC_USER)@$(RSYNC_HOST):$(DL_PATH)
|
|
|
|
#
|
|
# .PHONY: update
|
|
# update: $(PACKAGES)
|
|
# cp slt.xml slt1.tar.gz $(UPDATE_PATH)
|