mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
Rather than performing copying the install-procedure, the debian Makefile could just use the main Makefile's install target
This commit is contained in:
parent
a8d5504445
commit
de28df33ec
1 changed files with 2 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue