From: Wolfgang Bumiller Date: Thu, 17 Jan 2013 22:25:09 +0000 (+0100) Subject: Rather than performing copying the install-procedure, the debian Makefile could just... X-Git-Tag: before-library~234 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=de28df33eccbff02ccbe58f8a83a840f4924fc0c;p=xonotic%2Fgmqcc.git Rather than performing copying the install-procedure, the debian Makefile could just use the main Makefile's install target --- diff --git a/distro/deb/Makefile b/distro/deb/Makefile index cd5a3bf..77f9b2c 100644 --- a/distro/deb/Makefile +++ b/distro/deb/Makefile @@ -11,22 +11,10 @@ DEBDIR := gmqcc-$(MAJOR).$(MINOR).$(PATCH) DEB := $(DEBDIR).deb base: - @mkdir $(DEBDIR) - @mkdir $(DEBDIR)/$(PREFIX) - @mkdir -p $(DEBDIR)/$(BINDIR) - @mkdir -p $(DEBDIR)/$(DATADIR) - @mkdir -p $(DEBDIR)/$(MANDIR) - @mkdir -p $(DEBDIR)/$(MANDIR)/man1 - @mkdir -p $(DEBDIR)/DEBIAN - - @cp $(BASEDIR)/doc/gmqcc.1 $(DEBDIR)/$(MANDIR)/man1/ - @cp $(BASEDIR)/doc/qcvm.1 $(DEBDIR)/$(MANDIR)/man1/ - @cp $(BASEDIR)/gmqcc $(DEBDIR)/$(BINDIR)/ - @cp $(BASEDIR)/qcvm $(DEBDIR)/$(BINDIR)/ + $(MAKE) -C $(BASEDIR) DESTDIR=distro/deb/$(DEBDIR)/ PREFIX=/usr install + @install -d m755 $(DEBDIR)/DEBIAN @cp control $(DEBDIR)/DEBIAN/ - @chmod -R 755 $(DEBDIR) - @tar czf data.tar.gz $(DEBDIR)/[a-z]* @tar czf control.tar.gz $(DEBDIR)/DEBIAN/* @echo 2.0 > debian-binary