From c377f3ab11ddc3f3b5ebc029df7a91e5d2866fa5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 10 Mar 2020 14:01:09 +0000 Subject: [PATCH] build system: Work Currently produces a deb with some stuff in it. Signed-off-by: Ian Jackson --- Makefile | 16 ++++++++++++++++ debian/rules | 2 ++ 2 files changed, 18 insertions(+) diff --git a/Makefile b/Makefile index cde4141..0591143 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,22 @@ +INSTALL ?= install +INSTALL_SCRIPT ?= $(INSTALL) -m 755 + +prefix ?= /usr/local + +p=chiark-tcl-applet + +bindir=$(prefix)/bin +sharedir=$(prefix)/share/$p + +SCRIPTS += xbatmon-simple-tray +TCLLIBS += $(addsuffix .tcl, applet args subproc utils) + all: install: + $(INSTALL) -d $(addprefix $(DESTDIR), $(bindir) $(sharedir)) + $(INSTALL_SCRIPT) $(SCRIPTS) $(DESTDIR)$(bindir) + $(INSTALL) $(TCLLIBS) $(DESTDIR)$(sharedir) clean: diff --git a/debian/rules b/debian/rules index 2d33f6a..9951a36 100755 --- a/debian/rules +++ b/debian/rules @@ -1,4 +1,6 @@ #!/usr/bin/make -f +export prefix=/usr + %: dh $@ -- 2.30.2