mirror of
https://git.proxmox.com/git/framework7
synced 2026-02-04 19:42:15 +00:00
instead of calling dpkg-parsechangelog, as this is more consistent with our other packages Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
61 lines
1.4 KiB
Makefile
61 lines
1.4 KiB
Makefile
include defines.mk
|
|
include /usr/share/dpkg/default.mk
|
|
|
|
all: $(DEB)
|
|
|
|
DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
|
DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
|
|
|
|
.PHONY: deb
|
|
deb: $(DEB)
|
|
$(DEB):
|
|
rm -rf build
|
|
rsync -a ./* build/
|
|
cd build; dpkg-buildpackage -b -us -uc
|
|
lintian $(DEB)
|
|
|
|
|
|
install:
|
|
install -d $(CSSDIR)
|
|
install -d $(JSDIR)
|
|
install -d $(FONTDIR)
|
|
make -C $(F7DIR) install
|
|
make -C $(F7ICONSDIR) install
|
|
make -C $(MATERIALDIR) install
|
|
|
|
.PHONY: framework7
|
|
framework7:
|
|
wget $(F7URL) -O framework7.tar.gz.tmp
|
|
mv framework7.tar.gz.tmp framework7.tar.gz
|
|
mkdir -p $(F7DIR).tmp
|
|
tar -xf framework7.tar.gz -C $(F7DIR).tmp
|
|
cp -ar $(F7DIR).tmp/js $(F7DIR)/
|
|
cp -ar $(F7DIR).tmp/css $(F7DIR)/
|
|
rm framework7.tar.gz
|
|
rm -rf $(F7DIR).tmp
|
|
|
|
.PHONY: framework7-icons
|
|
framework7-icons:
|
|
wget $(F7ICONSURL) -O f7icons.tar.gz.tmp
|
|
mv f7icons.tar.gz.tmp f7icons.tar.gz
|
|
tar -xf f7icons.tar.gz
|
|
cp -rf $(F7ICONSDIR)-$(F7ICONSVER)/css $(F7ICONSDIR)/
|
|
cp -rf $(F7ICONSDIR)-$(F7ICONSVER)/fonts $(F7ICONSDIR)/
|
|
rm -rf $(F7ICONSDIR)-$(F7ICONSVER)
|
|
rm f7icons.tar.gz
|
|
|
|
.PHONY: material-icons
|
|
material-icons:
|
|
mkdir -p $(MATERIALDIR)
|
|
for i in $(MATERIALFONTS) $(MATERIALCSS); do \
|
|
wget $(MATERIALURL)/$$i -O material-icons/$$i.tmp; \
|
|
mv material-icons/$$i.tmp material-icons/$$i; \
|
|
done
|
|
|
|
.PHONY: download
|
|
download: framework7 framework7-icons material-icons
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf *.tar.gz build/ *.deb *.buildinfo *.changes
|