|
|
|
@ -80,8 +80,8 @@ test: get
@@ -80,8 +80,8 @@ test: get
|
|
|
|
|
|
|
|
|
|
assets: javascript fonts |
|
|
|
|
|
|
|
|
|
releaseassets: RJSFLAGS = generateSourceMaps=false preserveLicenseComments=true |
|
|
|
|
releaseassets: assets |
|
|
|
|
release-assets: RJSFLAGS = generateSourceMaps=false preserveLicenseComments=true |
|
|
|
|
release-assets: assets |
|
|
|
|
|
|
|
|
|
fonts: |
|
|
|
|
$(MKDIR_P) $(CURDIR)/static/fonts |
|
|
|
@ -119,14 +119,19 @@ extract-i18n:
@@ -119,14 +119,19 @@ extract-i18n:
|
|
|
|
|
update-i18n: |
|
|
|
|
cd $(CURDIR)/src/i18n && $(MAKE) update |
|
|
|
|
|
|
|
|
|
release: INTERNALLDFLAGS = -X main.version $(PACKAGE_VERSION) -X main.defaultConfig $(CONFIG_PATH)/$(CONFIG_FILE) |
|
|
|
|
release: OUTPUT = $(DIST_BIN) |
|
|
|
|
release: $(DIST_BIN) binary releaseassets |
|
|
|
|
release-binary: INTERNALLDFLAGS = -X main.version $(PACKAGE_VERSION) -X main.defaultConfig $(CONFIG_PATH)/$(CONFIG_FILE) |
|
|
|
|
release-binary: OUTPUT = $(DIST_BIN) |
|
|
|
|
release-binary: $(DIST_BIN) binary |
|
|
|
|
|
|
|
|
|
install: |
|
|
|
|
release: release-binary release-assets |
|
|
|
|
|
|
|
|
|
install-binary: |
|
|
|
|
@echo "Installing binaries to: $(DESTDIR)$(BIN)" |
|
|
|
|
@echo "Installing static resources to: $(DESTDIR)$(SHARE)" |
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(BIN) |
|
|
|
|
$(INSTALL) bin/$(EXENAME) $(DESTDIR)$(BIN) |
|
|
|
|
|
|
|
|
|
install-assets: |
|
|
|
|
@echo "Installing static resources to: $(DESTDIR)$(SHARE)" |
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/html |
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/html/sandboxes |
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/static |
|
|
|
@ -137,7 +142,6 @@ install:
@@ -137,7 +142,6 @@ install:
|
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/static/css |
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/static/js/libs/pdf |
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/static/js/sandboxes |
|
|
|
|
$(INSTALL) bin/$(EXENAME) $(DESTDIR)$(BIN) |
|
|
|
|
$(INSTALL) html/*.html $(DESTDIR)$(SHARE)/www/html |
|
|
|
|
$(INSTALL) html/sandboxes/*.html $(DESTDIR)$(SHARE)/www/html/sandboxes |
|
|
|
|
$(INSTALL) static/img/* $(DESTDIR)$(SHARE)/www/static/img |
|
|
|
@ -151,6 +155,8 @@ install:
@@ -151,6 +155,8 @@ install:
|
|
|
|
|
$(INSTALL) -D static/js/libs/webodf.js $(DESTDIR)$(SHARE)/www/static/js/libs/webodf.js |
|
|
|
|
$(INSTALL) $(OUTPUT_JS)/sandboxes/*.js $(DESTDIR)$(SHARE)/www/static/js/sandboxes |
|
|
|
|
|
|
|
|
|
install: install-binary install-assets |
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
|
$(GO) clean -i -r app/... 2>/dev/null || true |
|
|
|
|
rm -rf $(CURDIR)/static/fonts |
|
|
|
@ -181,4 +187,4 @@ tarball: distclean release install
@@ -181,4 +187,4 @@ tarball: distclean release install
|
|
|
|
|
cp server.conf.in $(TARPATH)/loader |
|
|
|
|
tar czf $(DIST)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)_$(BUILD_OS)_$(BUILD_ARCH).tar.gz -C $(DIST) $(PACKAGE_NAME)-$(PACKAGE_VERSION) |
|
|
|
|
|
|
|
|
|
.PHONY: clean distclean vendorclean pristine get getupdate build javascript fonts styles release releasetest dist_gopath install gopath binary binaryrace binaryall tarball assets |
|
|
|
|
.PHONY: clean distclean vendorclean pristine get getupdate build javascript fonts styles release releasetest dist_gopath install install-binary install-assets gopath binary binaryrace binaryall tarball assets |
|
|
|
|