]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Rather than performing copying the install-procedure, the debian Makefile could just...
authorWolfgang Bumiller <blub@speed.at>
Thu, 17 Jan 2013 22:25:09 +0000 (23:25 +0100)
committerWolfgang Bumiller <blub@speed.at>
Thu, 17 Jan 2013 22:25:09 +0000 (23:25 +0100)
distro/deb/Makefile

index cd5a3bf1ec57b9d43f394c190392011150acf0c1..77f9b2c4107e4664a79b205443666625fd62218b 100644 (file)
@@ -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