Skip to content

Instantly share code, notes, and snippets.

@terryburton
Created August 22, 2016 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terryburton/eb78f283c8aed64444753cb41482e1de to your computer and use it in GitHub Desktop.
Save terryburton/eb78f283c8aed64444753cb41482e1de to your computer and use it in GitHub Desktop.
FR process debian/control.in in debian/rules
# Add libsystemd-dev to Build-Depends if it is known
ifeq ($(shell apt-cache policy libsystemd-dev &>/dev/null && echo yes),yes)
CONTROL_BUILDDEPS = libsystemd-dev,
endif
...
clean:
...
# Regenerate debian/control file with additional deps
sed -e 's/@BUILDDEPS@/$(CONTROL_BUILDDEPS)/g' \
debian/control.in > debian/control.tmp
mv debian/control.tmp debian/control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment