1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
# out of tree build folder for KiCad footprints
DEB_BUILD_DIR=debian/build
# default install folder
INSTDIR=$(CURDIR)/debian/tmp
DEB_FOOTPRINTS_CMAKE_OPTS := \
-DCMAKE_INSTALL_PREFIX=/usr \
$(NULL)
%:
dh $@
override_dh_auto_configure:
# configuring KiCad footprints
dh_auto_configure --sourcedirectory=$(CURDIR) --builddirectory=$(DEB_BUILD_DIR)/footprints -- $(DEB_FOOTPRINTS_CMAKE_OPTS)
override_dh_auto_install:
# install KiCad footprints
dh_auto_install --destdir=$(INSTDIR) --sourcedirectory=$(CURDIR) --builddirectory=$(DEB_BUILD_DIR)/footprints
|