| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | include /usr/share/dpkg/pkg-info.mk # DEB_VERSION |
| 4 | |
| 5 | PKGscip-makefile . . . PKG. = github.com/mailru/easyjson |
| 6 | BINscip-makefile . . . BIN. = $(CURDIRscip-makefile . . . CURDIR.)/build/bin |
| 7 | SRCscip-makefile . . . SRC. = $(CURDIRscip-makefile . . . CURDIR.)/build/src/$(PKGscip-makefile . . . PKG.) |
| 8 | export GO111MODULEscip-makefile . . . GO111MODULE. = off |
| 9 | export GOPATHscip-makefile . . . GOPATH. = $(CURDIRscip-makefile . . . CURDIR.)/build |
| 10 | export GOCACHEscip-makefile . . . GOCACHE. = $(CURDIRscip-makefile . . . CURDIR.)/build/cache |
| 11 | |
| 12 | %scip-makefile . . . `%`/: |
| 13 | dh $@scip-makefile . . . `@`. --buildsystem=golang --builddirectory=build |
| 14 | |
| 15 | override_dh_auto_testscip-makefile . . . override_dh_auto_test/: |
| 16 | |
| 17 | execute_after_dh_auto_buildscip-makefile . . . execute_after_dh_auto_build/: |
| 18 | echo $$GO111MODULE $$GOPATH |
| 19 | $(BINscip-makefile . . . BIN.)/easyjson -stubs \ |
| 20 | $(SRCscip-makefile . . . SRC.)/tests/snake.go \ |
| 21 | $(SRCscip-makefile . . . SRC.)/tests/data.go \ |
| 22 | $(SRCscip-makefile . . . SRC.)/tests/omitempty.go \ |
| 23 | $(SRCscip-makefile . . . SRC.)/tests/nothing.go \ |
| 24 | $(SRCscip-makefile . . . SRC.)/tests/named_type.go \ |
| 25 | $(SRCscip-makefile . . . SRC.)/tests/custom_map_key_type.go \ |
| 26 | $(SRCscip-makefile . . . SRC.)/tests/embedded_type.go \ |
| 27 | $(SRCscip-makefile . . . SRC.)/tests/reference_to_pointer.go |
| 28 | $(BINscip-makefile . . . BIN.)/easyjson -all $(SRCscip-makefile . . . SRC.)/tests/data.go |
| 29 | $(BINscip-makefile . . . BIN.)/easyjson -all $(SRCscip-makefile . . . SRC.)/tests/nothing.go |
| 30 | $(BINscip-makefile . . . BIN.)/easyjson -all $(SRCscip-makefile . . . SRC.)/tests/errors.go |
| 31 | $(BINscip-makefile . . . BIN.)/easyjson -snake_case $(SRCscip-makefile . . . SRC.)/tests/snake.go |
| 32 | $(BINscip-makefile . . . BIN.)/easyjson -omit_empty $(SRCscip-makefile . . . SRC.)/tests/omitempty.go |
| 33 | $(BINscip-makefile . . . BIN.)/easyjson -build_tags=use_easyjson $(SRCscip-makefile . . . SRC.)/benchmark/data.go |
| 34 | $(BINscip-makefile . . . BIN.)/easyjson $(SRCscip-makefile . . . SRC.)/tests/nested_easy.go |
| 35 | $(BINscip-makefile . . . BIN.)/easyjson $(SRCscip-makefile . . . SRC.)/tests/named_type.go |
| 36 | $(BINscip-makefile . . . BIN.)/easyjson $(SRCscip-makefile . . . SRC.)/tests/custom_map_key_type.go |
| 37 | $(BINscip-makefile . . . BIN.)/easyjson $(SRCscip-makefile . . . SRC.)/tests/embedded_type.go |
| 38 | $(BINscip-makefile . . . BIN.)/easyjson $(SRCscip-makefile . . . SRC.)/tests/reference_to_pointer.go |
| 39 | $(BINscip-makefile . . . BIN.)/easyjson $(SRCscip-makefile . . . SRC.)/tests/key_marshaler_map.go |
| 40 | $(BINscip-makefile . . . BIN.)/easyjson -disallow_unknown_fields \ |
| 41 | $(SRCscip-makefile . . . SRC.)/tests/disallow_unknown.go |
| 42 | |
| 43 | Bscip-makefile . . . B. = $(CURDIRscip-makefile . . . CURDIR.)/debian/tmp/usr/bin |
| 44 | Mscip-makefile . . . M. = $(CURDIRscip-makefile . . . CURDIR.)/debian/tmp/usr/share/man/man1 |
| 45 | |
| 46 | ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) |
| 47 | execute_before_dh_installman-archscip-makefile . . . execute_before_dh_installman-arch/: |
| 48 | mkdir -pv $(Mscip-makefile . . . M.) |
| 49 | help2man --version-string="$(DEB_VERSION)" \ |
| 50 | --no-info --no-discard-stderr \ |
| 51 | --name="Fast JSON serializer for Go" \ |
| 52 | --output $(Mscip-makefile . . . M.)/easyjson.1 \ |
| 53 | $(Bscip-makefile . . . B.)/easyjson |
| 54 | endif |