2017-03-12 13:23:57 +00:00
|
|
|
|
2017-07-16 14:59:00 +00:00
|
|
|
# UPDATE_PATH=/srv/slt-update
|
|
|
|
PACKAGES = slt.tar.gz
|
2017-03-12 13:23:57 +00:00
|
|
|
|
2019-03-25 14:45:27 +00:00
|
|
|
export DL_PREFIX=https://slt.wolf-stuttgart.net/update/template
|
|
|
|
|
|
|
|
RSYNC_OPTIONS=-rltDz --delete --delete-delay --delete-excluded --exclude '.gitignore'
|
|
|
|
RSYNC_USER=christian
|
|
|
|
RSYNC_HOST=hh.wolf-stuttgart.net
|
|
|
|
DL_PATH=/srv/http/slt/update/template
|
|
|
|
|
2017-07-16 14:59:00 +00:00
|
|
|
all: package
|
2017-03-12 13:23:57 +00:00
|
|
|
|
|
|
|
package: $(PACKAGES)
|
|
|
|
|
2021-12-03 17:08:39 +00:00
|
|
|
.PHONY: npm
|
|
|
|
npm:
|
|
|
|
cd slt; npm i
|
|
|
|
cd slt; npm run sass
|
|
|
|
|
2017-07-16 14:59:00 +00:00
|
|
|
.PHONY: slt.tar.gz
|
2022-04-04 12:01:18 +00:00
|
|
|
slt.tar.gz: npm slt/templateDetails.xml
|
2021-12-03 17:08:39 +00:00
|
|
|
# cd slt ; tar czf ../$@ *
|
|
|
|
tar czf $@ -C slt \
|
|
|
|
css/dynamic-styles.css.php css/index.html css/style.css css/.htaccess \
|
|
|
|
html \
|
|
|
|
images \
|
|
|
|
js \
|
|
|
|
language \
|
|
|
|
favicon.ico \
|
|
|
|
index.html \
|
|
|
|
index.php \
|
|
|
|
template_preview.png \
|
|
|
|
template_thumbnail.png \
|
|
|
|
templateDetails.xml
|
2017-03-12 13:23:57 +00:00
|
|
|
|
2022-04-04 12:01:18 +00:00
|
|
|
.PHONY: slt/templateDetails.xml
|
|
|
|
slt/templateDetails.xml:
|
|
|
|
./scripts/create-details-xml.sh
|
|
|
|
|
2017-07-16 14:59:00 +00:00
|
|
|
.PHONY: release
|
2019-03-25 14:45:27 +00:00
|
|
|
release: slt.tar.gz
|
2017-07-16 14:59:00 +00:00
|
|
|
./scripts/create-release.sh
|
|
|
|
|
|
|
|
.PHONY: upload
|
2019-03-25 14:45:27 +00:00
|
|
|
upload: release
|
|
|
|
$(MAKE) reupload
|
|
|
|
|
|
|
|
.PHONY: slt-update.xml
|
|
|
|
slt-update.xml:
|
2017-07-16 14:59:00 +00:00
|
|
|
./scripts/create-update-xml.sh
|
2019-03-25 14:45:27 +00:00
|
|
|
|
|
|
|
.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)
|
2017-07-16 14:59:00 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# .PHONY: update
|
|
|
|
# update: $(PACKAGES)
|
|
|
|
# cp slt.xml slt1.tar.gz $(UPDATE_PATH)
|