refine rest of package makefiles
This commit is contained in:
parent
24beaf3b62
commit
1732e941c4
@ -4,8 +4,10 @@ include $(PRAWNOS_ROOT)/scripts/common.mk
|
||||
|
||||
|
||||
VERSION := $(shell cd src/; dpkg-parsechangelog --show-field Version)
|
||||
PACKAGE_NAME := flashmap_$(VERSION)_armhf
|
||||
PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb
|
||||
|
||||
flashmap_$(VERSION)_armhf.deb:
|
||||
$(PACKAGE_NAME_DEB):
|
||||
@echo Building $@
|
||||
cd src/; pdebuild --configfile $(PBUILDER_RC) \
|
||||
--buildresult .. \
|
||||
@ -31,4 +33,7 @@ install:
|
||||
ifndef INSTALL_TARGET
|
||||
$(error INSTALL_TARGET is not set)
|
||||
endif
|
||||
cp flashmap_$(VERSION)_armhf.deb $(INSTALL_TARGET)
|
||||
ifeq ("$(wildcard $(PACKAGE_NAME_DEB))","")
|
||||
$(error $(PACKAGE_NAME_DEB) must be built first)
|
||||
endif
|
||||
cp $(PACKAGE_NAME_DEB) $(INSTALL_TARGET)
|
||||
|
@ -4,8 +4,10 @@ include $(PRAWNOS_ROOT)/scripts/common.mk
|
||||
|
||||
|
||||
VERSION := $(shell cd src/; dpkg-parsechangelog --show-field Version)
|
||||
PACKAGE_NAME := xsecurelock_$(VERSION)_armhf
|
||||
PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb
|
||||
|
||||
xsecurelock_$(VERSION)_armhf.deb:
|
||||
$(PACKAGE_NAME_DEB):
|
||||
@echo Building $@
|
||||
cd src/; pdebuild --configfile $(PBUILDER_RC) \
|
||||
--buildresult .. \
|
||||
@ -30,5 +32,8 @@ install:
|
||||
ifndef INSTALL_TARGET
|
||||
$(error INSTALL_TARGET is not set)
|
||||
endif
|
||||
cp xsecurelock_$(VERSION)_armhf.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