diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-09-05 15:46:04 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-09-13 15:42:16 +0200 |
commit | 6849b490ccfe2f5ed2bb577758edf30445691378 (patch) | |
tree | 5a4194f86623ec1b78c13d16f04eef59dac96b81 /Makefile | |
parent | f1ba9d6e9a69a5982ea4821a6b78f0ca5f224bc7 (diff) |
Add packaging files used by OBS.
xds-server is now packaging in OBS:
https://build.opensuse.org/package/show/isv:LinuxAutomotive:app-Development/agl-xds-server
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,7 +1,7 @@ # Makefile used to build XDS daemon Web Server # Application Version -VERSION := 0.2.1 +VERSION := 0.2.2 # Syncthing version to install SYNCTHING_VERSION = 0.14.28 @@ -36,7 +36,7 @@ ifeq ($(origin DESTDIR), undefined) DESTDIR := /usr/local/bin endif ifeq ($(origin DESTDIR_WWW), undefined) - DESTDIR_WWW := $(DESTDIR)/www-xds-server + DESTDIR_WWW := $(DESTDIR)/www endif HOST_GOOS=$(shell go env GOOS) @@ -145,7 +145,8 @@ install: .PHONY: package package: clean make -f $(ROOT_SRCDIR)/Makefile all install DESTDIR=$(PACKAGE_DIR)/xds-server - make -f $(ROOT_SRCDIR)/Makefile conffile DESTDIR=$(PACKAGE_DIR)/xds-server DESTDIR_WWW=www-xds-server + make -f $(ROOT_SRCDIR)/Makefile conffile DESTDIR=$(PACKAGE_DIR)/xds-server DESTDIR_WWW=www + cp -r $(ROOT_SRCDIR)/conf.d $(PACKAGE_DIR)/xds-server rm -f $(ROOT_SRCDIR)/$(PACKAGE_ZIPFILE) (cd $(PACKAGE_DIR) && zip -r $(ROOT_SRCDIR)/$(PACKAGE_ZIPFILE) ./xds-server) |