diff options
| author | 2026-02-11 04:35:36 +0000 | |
|---|---|---|
| committer | 2026-02-11 04:47:51 +0000 | |
| commit | b4a99a8123e953504160a78466a5cc27c8bb066f (patch) | |
| tree | 41b6c5a8f36c73adbe2f13016e40fe153be4c252 /makefile | |
| parent | add po4a.cfg (diff) | |
| download | michalec-dev-b4a99a8123e953504160a78466a5cc27c8bb066f.tar.gz | |
add scripts
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..8f1fce2 --- /dev/null +++ b/makefile | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | RSYNC_FLAGS += \ | ||
| 2 | --verbose \ | ||
| 3 | --compress \ | ||
| 4 | --recursive \ | ||
| 5 | --delete-excluded \ | ||
| 6 | --owner --group \ | ||
| 7 | --chown=cmmm:www-data | ||
| 8 | |||
| 9 | RSYNC_SRCS = ./pub/ | ||
| 10 | RSYNC_DEST = cmmm@vps:/srv/http/michalec.dev/ | ||
| 11 | |||
| 12 | .PHONY: all | ||
| 13 | all: translate export publish | ||
| 14 | |||
| 15 | .PHONY: translate | ||
| 16 | translate: | ||
| 17 | po4a --verbose ./etc/po4a.cfg | ||
| 18 | |||
| 19 | .PHONY: export | ||
| 20 | export: | ||
| 21 | emacs --quick --script ./bin/export.el | ||
| 22 | |||
| 23 | .PHONY: publish | ||
| 24 | publish: | ||
| 25 | rsync $(RSYNC_FLAGS) $(RSYNC_SRCS) $(RSYNC_DEST) | ||
