Skip to content

Instantly share code, notes, and snippets.

@Elv13
Created March 27, 2011 06:07
Show Gist options
  • Save Elv13/888971 to your computer and use it in GitHub Desktop.
Save Elv13/888971 to your computer and use it in GitHub Desktop.
DPKGBUILDCMD=dpkg-buildpackage -b -D -us -uc -tc -rfakeroot
DEBREPO="../debrepo"
DEB_INCOMING="${DEBREPO}/incoming/work"
# Build all system packages
# System packages contains linux configuration files as well
# --- Package creation ---
all: packageName1 packageName2 packageName3
packageName1:
cd packageName1 && ${DPKGBUILDCMD}
cp packageName1_*.deb ${DEB_INCOMING}
packageName2:
cd packageName2 && ${DPKGBUILDCMD}
cp packageName2_*.deb ${DEB_INCOMING}
packageName3:
cd packageName3 && ${DPKGBUILDCMD}
cp packageName3_*.deb ${DEB_INCOMING}
# --- Package cleanup ---
clean:
rm *.deb *.changes || true
.PHONY: all clean packageName1 packageName2 packageName3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment