refine makefile
This commit is contained in:
parent
69f37092ea
commit
24beaf3b62
@ -1,12 +1,12 @@
|
|||||||
|
|
||||||
#import all shared make vars
|
#import all shared make vars
|
||||||
PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
|
PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
|
||||||
include $(PRAWNOS_ROOT)/scripts/common.mk
|
include $(PRAWNOS_ROOT)/scripts/common.mk
|
||||||
|
|
||||||
VERSION := $(shell cd src/; dpkg-parsechangelog --show-field Version)
|
VERSION := $(shell cd src/; dpkg-parsechangelog --show-field Version)
|
||||||
EMPTY := ""
|
PACKAGE_NAME := font-source-code-pro_$(VERSION)_all
|
||||||
|
PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb
|
||||||
|
|
||||||
font-source-code-pro_$(VERSION)_all.deb:
|
$(PACKAGE_NAME_DEB):
|
||||||
@echo Building $@
|
@echo Building $@
|
||||||
cd src/; debuild -us -uc
|
cd src/; debuild -us -uc
|
||||||
|
|
||||||
@ -15,6 +15,11 @@ clean:
|
|||||||
rm -rf *.upload
|
rm -rf *.upload
|
||||||
rm -rf *.deb
|
rm -rf *.deb
|
||||||
rm -rf *.changes
|
rm -rf *.changes
|
||||||
|
rm -rf *.dsc
|
||||||
|
rm -rf *.build
|
||||||
|
rm -rf *.diff.gz
|
||||||
|
rm -rf *.debian.tar.xz
|
||||||
|
rm -rf *.buildinfo
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload:
|
upload:
|
||||||
@ -24,4 +29,7 @@ install:
|
|||||||
ifndef INSTALL_TARGET
|
ifndef INSTALL_TARGET
|
||||||
$(error INSTALL_TARGET is not set)
|
$(error INSTALL_TARGET is not set)
|
||||||
endif
|
endif
|
||||||
cp font-source-code-pro_$(VERSION)_all.deb $(INSTALL_TARGET)
|
ifeq ("$(wildcard $(PACKAGE_NAME_DEB))","")
|
||||||
|
$(error $(PACKAGE_NAME_DEB) must be built first)
|
||||||
|
endif
|
||||||
|
cp $(PACKAGE_NAME_DEB) $(INSTALL_TARGET)
|
||||||
|
Loading…
Reference in New Issue
Block a user