summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul C. Buetow <paul@buetow.org>2014-04-15 09:22:13 +0200
committerPaul C. Buetow <paul@buetow.org>2014-04-15 09:22:13 +0200
commitc9b966553c7b096fba20a5558023a6235080aceb (patch)
tree5862961ed8e5a764805bc327cc54ac8821f3b12b /Makefile
parent4d3c53a1d14229940de04f7392548de666b4c2c3 (diff)
can build package
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9c6f29e..db17930 100644
--- a/Makefile
+++ b/Makefile
@@ -8,10 +8,13 @@ build:
# $DESTDIR is actually set by the Debian tools.
install:
test ! -d $(DESTDIR)/usr/bin && mkdir -p $(DESTDIR)/usr/bin || exit 0
- cp ./bin/fapi $(DESTDIR)/usr/bin/fapi
- cp ./bin/fapi $(DESTDIR)/usr/bin/f
+ test ! -d $(DESTDIR)/usr/share/$(NAME) && mkdir -p $(DESTDIR)/usr/share/$(NAME) || exit 0
+ cp ./bin/$(NAME) $(DESTDIR)/usr/bin/$(NAME)
+ cp ./bin/$(NAME) $(DESTDIR)/usr/bin/f
+ cp $(NAME).conf.sample $(DESTDIR)/usr/share/$(NAME)
deinstall:
test ! -z "$(DESTDIR)" && test -f $(DESTDIR)/usr/bin/$(NAME) && rm $(DESTDIR)/usr/bin/$(NAME) || exit 0
+ test ! -z "$(DESTDIR)" && test -f $(DESTDIR)/usr/share/$(NAME) && rm -r $(DESTDIR)/usr/share/$(NAME) || exit 0
clean:
rm bin/*
# Parses the version out of the Debian changelog
@@ -38,4 +41,5 @@ clean-top:
rm ../$(NAME)_*.dsc
rm ../$(NAME)_*.changes
rm ../$(NAME)_*.deb
-
+dput:
+ dput -u wheezy-buetowdotorg ../$(NAME)_$$(cat ./.version)_amd64.changes