Rather than performing copying the install-procedure, the debian Makefile could just use the main Makefile's install target

This commit is contained in:
Wolfgang Bumiller 2013-01-17 23:25:09 +01:00
parent a8d5504445
commit de28df33ec

View 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