mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-15 07:00:52 +00:00
34 lines
884 B
Makefile
Executable File
34 lines
884 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
# -*- makefile -*-
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
#export DH_VERBOSE=1
|
|
|
|
# DH_GOPKG is the upstream path which you would normally “go get”.
|
|
# Using it allows us to build applications without patching locations.
|
|
export DH_GOPKG := github.com/aptly-dev/aptly
|
|
|
|
# our path
|
|
SOURCE_DIR := $(CURDIR)
|
|
DEST_DIR := $(CURDIR)/debian/aptly
|
|
|
|
%:
|
|
dh $@ --sourcedirectory=$(SOURCE_DIR)
|
|
|
|
override_dh_auto_test:
|
|
# nothing for now
|
|
|
|
override_dh_auto_clean:
|
|
rm -fr $(DEST_DIR)
|
|
|
|
override_dh_auto_build:
|
|
|
|
override_dh_auto_install:
|
|
mkdir -p $(CURDIR)/src/github.com/aptly-dev
|
|
ln -sf ../../../ $(CURDIR)/src/github.com/aptly-dev/aptly
|
|
ls -l $(CURDIR)/src/github.com/aptly-dev/aptly/
|
|
GOBIN=$(CURDIR) GOPATH=$(CURDIR):$(SOURCE_DIR)/vendor go install -v $(SOURCE_DIR)/main.go
|
|
dh_bash-completion
|
|
mkdir -p $(DEST_DIR)/usr/bin
|
|
mv $(CURDIR)/main $(DEST_DIR)/usr/bin/aptly
|