summaryrefslogtreecommitdiff
path: root/sd_daemon/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sd_daemon/Makefile')
-rw-r--r--sd_daemon/Makefile26
1 files changed, 24 insertions, 2 deletions
diff --git a/sd_daemon/Makefile b/sd_daemon/Makefile
index 1d8579e..2a67514 100644
--- a/sd_daemon/Makefile
+++ b/sd_daemon/Makefile
@@ -12,14 +12,36 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+# header
+ifneq ($(topsrcdir),)
+include $(topsrcdir)/build-aux/Makefile.head.mk
+else
+srcdir = .
+.DEFAULT_GOAL = files.generate
+endif
+
+# body
+
files.src.gen += log_util.go
+ifeq ($(topsrcdir),)
files.generate: $(files.src.gen)
maintainer-clean:
rm -f -- $(files.src.gen)
.PHONY: files.generate maintainer-clean
+.DELETE_ON_ERROR:
+endif
-%.go: %.go.gen
- ./$^ > $@
+$(srcdir)/%.go: $(srcdir)/%.go.gen
+ cd $(@D) && ./$(^F) > $(@F)
+# footer
+ifneq ($(topsrcdir),)
+include $(topsrcdir)/build-aux/Makefile.tail.mk
+else
+files.generate: $(files.src.gen)
+maintainer-clean:
+ rm -f -- $(files.src.gen) $(files.src.int)
+.PHONY: files.generate maintainer-clean
.DELETE_ON_ERROR:
+endif