From: Ian Jackson Date: Tue, 10 Mar 2020 14:01:09 +0000 (+0000) Subject: build system: Work X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=c377f3ab11ddc3f3b5ebc029df7a91e5d2866fa5;p=chiark-tcl-applet.git build system: Work Currently produces a deb with some stuff in it. Signed-off-by: Ian Jackson --- 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 $@